diff --git a/NEWS b/NEWS index f87d901dc..9094dec76 100644 --- a/NEWS +++ b/NEWS @@ -37,6 +37,7 @@ DFHack Future - made "esc" work properly gui/gm-editor handles lua tables properly manipulator: fixed crash when selecting custom professions when none are found + remotefortressreader: fixed crash when attempting to send map info when no map was loaded search: fixed crash in unit list after cancelling a job stockpiles: now checks/sanitizes filenames when saving stocks: fixed a crash when right-clicking diff --git a/plugins/remotefortressreader.cpp b/plugins/remotefortressreader.cpp index bc9bdbb08..d3fba0827 100644 --- a/plugins/remotefortressreader.cpp +++ b/plugins/remotefortressreader.cpp @@ -931,6 +931,8 @@ static command_result GetViewInfo(color_ostream &stream, const EmptyMessage *in, static command_result GetMapInfo(color_ostream &stream, const EmptyMessage *in, MapInfo *out) { + if (!Maps::IsValid()) + return CR_FAILURE; uint32_t size_x, size_y, size_z; int32_t pos_x, pos_y, pos_z; Maps::getSize(size_x, size_y, size_z);