diff --git a/plugins/remotefortressreader/remotefortressreader.cpp b/plugins/remotefortressreader/remotefortressreader.cpp index 32bd73dad..5b84bf745 100644 --- a/plugins/remotefortressreader/remotefortressreader.cpp +++ b/plugins/remotefortressreader/remotefortressreader.cpp @@ -188,6 +188,11 @@ command_result loadArtImageChunk(color_ostream &out, vector & parameter if (parameters.size() != 1) return CR_WRONG_USAGE; + if (!Core::getInstance().isWorldLoaded()) + { + out.printerr("No world loaded\n"); + return CR_FAILURE; + } GET_ART_IMAGE_CHUNK GetArtImageChunk = reinterpret_cast(Core::getInstance().vinfo->getAddress("get_art_image_chunk")); if (GetArtImageChunk) @@ -2983,4 +2988,4 @@ static command_result GetLanguage(color_ostream & stream, const EmptyMessage * i netShape->set_tile(shape->tile); } return CR_OK; -} \ No newline at end of file +}