From 5bf59085829bc730ddd37bdd693c40b389f0c2f7 Mon Sep 17 00:00:00 2001 From: Mike Stewart Date: Sun, 22 Jan 2012 15:47:58 -0800 Subject: [PATCH] Made liquids not crash when a map isn't loaded. --- plugins/liquids.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/liquids.cpp b/plugins/liquids.cpp index bc930ff30..103351773 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 & 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 & parameters) else if(command.empty()) { CoreSuspender suspend(c); - Maps::getSize(x_max,y_max,z_max); Position = c->getGui(); do {