diff options
| author | Quietust | 2012-05-23 13:43:41 -0500 |
|---|---|---|
| committer | Quietust | 2012-05-23 13:43:41 -0500 |
| commit | ae41ddc04a2b3a076bd18af984f163e46c74b65f (patch) | |
| tree | 6c98e82f33545e806b5a3bc0d5f69a234b2acb91 /plugins/fastdwarf.cpp | |
| parent | 2b862655b722234431051f188fe5169960bb3f05 (diff) | |
| download | dfhack-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.cpp | 2 |
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; |
