From 4d2e5b80bf4c48403fb5491929d45e46652aeca1 Mon Sep 17 00:00:00 2001 From: Quietust Date: Mon, 4 Nov 2013 14:55:31 -0600 Subject: [PATCH] Use df::allocate here for proper compatibility with 40d and earlier --- plugins/plants.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plants.cpp b/plugins/plants.cpp index 9be4c193a..c0cd427a9 100644 --- a/plugins/plants.cpp +++ b/plugins/plants.cpp @@ -269,7 +269,7 @@ command_result df_createplant (color_ostream &out, vector & parameters) return CR_FAILURE; } - df::plant *plant = new df::plant; + df::plant *plant = df::allocate(); if (plant_raw->flags.is_set(plant_raw_flags::TREE)) plant->hitpoints = 400000; else