From: Tobias Gläßer Date: Sun, 21 Mar 2004 18:07:37 +0000 (+0000) Subject: fixed creating of new level subset again, because X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a935f6b64e0a571cceabe462e5719d6043804767;p=supertux.git fixed creating of new level subset again, because CVS was deadly to the previous fix SVN-Revision: 299 --- 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();