From b2f4029f4244ad7bc88bb3a658b24e2b1e59edfb Mon Sep 17 00:00:00 2001 From: Japa Date: Tue, 2 Apr 2013 02:58:06 +0530 Subject: [PATCH] Added in more sanity checks. Signed-off-by: Japa --- plugins/isoworld | 2 +- plugins/isoworldremote.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/isoworld b/plugins/isoworld index 6a74e3ee9..510ca8aaa 160000 --- a/plugins/isoworld +++ b/plugins/isoworld @@ -1 +1 @@ -Subproject commit 6a74e3ee9ee9d3e35da746fd3fd1d99c30b2e5ad +Subproject commit 510ca8aaaa6f6da51fbd00b51a2facd61dae07f1 diff --git a/plugins/isoworldremote.cpp b/plugins/isoworldremote.cpp index a57c6c633..6a86d96bc 100644 --- a/plugins/isoworldremote.cpp +++ b/plugins/isoworldremote.cpp @@ -177,6 +177,14 @@ static command_result GetEmbarkTile(color_ostream &stream, const TileRequest *in static command_result GetEmbarkInfo(color_ostream &stream, const MapRequest *in, MapReply *out) { + if(!Core::getInstance().isWorldLoaded()) { + out->set_available(false); + return CR_OK; + } + if(!Core::getInstance().isMapLoaded()) { + out->set_available(false); + return CR_OK; + } if(!df::global::gamemode) { out->set_available(false); return CR_OK;