From ae3210ec87cc5d1a71bf70fd8875c54b536ccf4a Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 14 Oct 2015 12:14:33 +0200 Subject: [PATCH] pervious commit did not compile: small copy/paste error --- src/kernel/building.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/building.c b/src/kernel/building.c index 7ffba178e..da4f58867 100644 --- a/src/kernel/building.c +++ b/src/kernel/building.c @@ -95,7 +95,7 @@ void bt_register(building_type * type) void free_buildingtype(void *ptr) { building_type *btype = (building_type *)ptr; free_construction(btype->construction); - free_construction(btype->maintenance); + free(btype->maintenance); free(btype->_name); free(btype); }