From 4d035c645584451925ee533e7bd9e1158b5cf7da Mon Sep 17 00:00:00 2001 From: neoraider Date: Wed, 29 Aug 2007 19:54:05 +0000 Subject: zoomedit: Einige Rauminformationen werden jetzt angezeigt & Name kann ge?ndert werden. --- level.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'level.c') diff --git a/level.c b/level.c index 4253746..7c6aaa9 100644 --- a/level.c +++ b/level.c @@ -36,8 +36,11 @@ void freeLevel(LEVEL *lvl) { if(lvl) { if(lvl->rooms) { for(i = 0; i < lvl->nRooms; i++) { - if(lvl->rooms[i].vertices) - free(lvl->rooms[i].vertices); + if(lvl->rooms[i].polygon.vertices) + free(lvl->rooms[i].polygon.vertices); + + if(lvl->rooms[i].name) + free(lvl->rooms[i].name); } free(lvl->rooms); -- cgit v1.2.3