From a935f6b64e0a571cceabe462e5719d6043804767 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Gl=C3=A4=C3=9Fer?= Date: Sun, 21 Mar 2004 18:07:37 +0000 Subject: [PATCH] fixed creating of new level subset again, because CVS was deadly to the previous fix SVN-Revision: 299 --- src/leveleditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leveleditor.cpp b/src/leveleditor.cpp index c96e436c1..09b6b85fd 100644 --- a/src/leveleditor.cpp +++ b/src/leveleditor.cpp @@ -261,7 +261,7 @@ int leveleditor(int levelnb) le_level = 1; arrays_init(); loadshared(); - le_current_level = (st_level*) malloc(sizeof(st_level)); + le_current_level = new st_level; if(level_load(le_current_level, le_level_subset.name.c_str(), le_level) != 0) { le_quit(); -- 2.11.0