Made liquids not crash when a map isn't loaded.

develop
Mike Stewart 2012-01-22 15:47:58 -08:00
parent 031119ac73
commit 5bf5908582
1 changed files with 0 additions and 2 deletions

@ -167,7 +167,6 @@ DFhackCExport command_result plugin_shutdown ( Core * c )
DFhackCExport command_result df_liquids (Core * c, vector <string> & parameters) DFhackCExport command_result df_liquids (Core * c, vector <string> & parameters)
{ {
int32_t x,y,z; int32_t x,y,z;
uint32_t x_max,y_max,z_max;
DFHack::Gui * Position; DFHack::Gui * Position;
for(int i = 0; i < parameters.size();i++) 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()) else if(command.empty())
{ {
CoreSuspender suspend(c); CoreSuspender suspend(c);
Maps::getSize(x_max,y_max,z_max);
Position = c->getGui(); Position = c->getGui();
do do
{ {