fixed creating of new level subset again, because
authorTobias Gläßer <tobi.web@gmx.de>
Sun, 21 Mar 2004 18:07:37 +0000 (18:07 +0000)
committerTobias Gläßer <tobi.web@gmx.de>
Sun, 21 Mar 2004 18:07:37 +0000 (18:07 +0000)
CVS was deadly to the previous fix

SVN-Revision: 299

src/leveleditor.cpp

index c96e436..09b6b85 100644 (file)
@@ -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();