diff options
| author | Mike Stewart | 2012-01-22 15:47:58 -0800 |
|---|---|---|
| committer | Mike Stewart | 2012-01-22 15:47:58 -0800 |
| commit | 5bf59085829bc730ddd37bdd693c40b389f0c2f7 (patch) | |
| tree | 4584be72397708374a01583fc9b22ee4132290e5 /plugins/liquids.cpp | |
| parent | 031119ac7373d03b4e5cff7bd22e405ee61a7182 (diff) | |
| download | dfhack-5bf59085829bc730ddd37bdd693c40b389f0c2f7.tar.gz dfhack-5bf59085829bc730ddd37bdd693c40b389f0c2f7.tar.bz2 dfhack-5bf59085829bc730ddd37bdd693c40b389f0c2f7.tar.xz | |
Made liquids not crash when a map isn't loaded.
Diffstat (limited to 'plugins/liquids.cpp')
| -rw-r--r-- | plugins/liquids.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/liquids.cpp b/plugins/liquids.cpp index bc930ff3..10335177 100644 --- a/plugins/liquids.cpp +++ b/plugins/liquids.cpp @@ -167,7 +167,6 @@ DFhackCExport command_result plugin_shutdown ( Core * c ) DFhackCExport command_result df_liquids (Core * c, vector <string> & parameters) { int32_t x,y,z; - uint32_t x_max,y_max,z_max; DFHack::Gui * Position; for(int i = 0; i < parameters.size();i++) @@ -359,7 +358,6 @@ DFhackCExport command_result df_liquids (Core * c, vector <string> & parameters) else if(command.empty()) { CoreSuspender suspend(c); - Maps::getSize(x_max,y_max,z_max); Position = c->getGui(); do { |
