Use df::allocate here for proper compatibility with 40d and earlier

develop
Quietust 2013-11-04 14:55:31 -06:00
parent 463bb8d498
commit 4d2e5b80bf
1 changed files with 1 additions and 1 deletions

@ -269,7 +269,7 @@ command_result df_createplant (color_ostream &out, vector <string> & parameters)
return CR_FAILURE; return CR_FAILURE;
} }
df::plant *plant = new df::plant; df::plant *plant = df::allocate<df::plant>();
if (plant_raw->flags.is_set(plant_raw_flags::TREE)) if (plant_raw->flags.is_set(plant_raw_flags::TREE))
plant->hitpoints = 400000; plant->hitpoints = 400000;
else else