summaryrefslogtreecommitdiff
path: root/plugins/fastdwarf.cpp
diff options
context:
space:
mode:
authorQuietust2012-05-23 13:43:41 -0500
committerQuietust2012-05-23 13:43:41 -0500
commitae41ddc04a2b3a076bd18af984f163e46c74b65f (patch)
tree6c98e82f33545e806b5a3bc0d5f69a234b2acb91 /plugins/fastdwarf.cpp
parent2b862655b722234431051f188fe5169960bb3f05 (diff)
downloaddfhack-ae41ddc04a2b3a076bd18af984f163e46c74b65f.tar.gz
dfhack-ae41ddc04a2b3a076bd18af984f163e46c74b65f.tar.bz2
dfhack-ae41ddc04a2b3a076bd18af984f163e46c74b65f.tar.xz
Don't crash if world is undefined
Diffstat (limited to 'plugins/fastdwarf.cpp')
-rw-r--r--plugins/fastdwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/fastdwarf.cpp b/plugins/fastdwarf.cpp
index 643a097c..5a2e2f20 100644
--- a/plugins/fastdwarf.cpp
+++ b/plugins/fastdwarf.cpp
@@ -28,7 +28,7 @@ static int enable_fastdwarf = false;
DFhackCExport command_result plugin_onupdate ( color_ostream &out )
{
// check run conditions
- if(!world->map.block_index || !enable_fastdwarf)
+ if(!world || !world->map.block_index || !enable_fastdwarf)
{
// give up if we shouldn't be running'
return CR_OK;