فهرست منبع

Memory Leak behoben

kolja 5 سال پیش
والد
کامیت
b12dc07ffe
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Welt2D.cpp

+ 1 - 1
Welt2D.cpp

@@ -275,7 +275,7 @@ void Welt2D::removeObject( Object2D *obj )
     int anz = objects->getEintragAnzahl();
     for( int i = 0; i < anz; i++ )
     {
-        if( objects->get( i ) == obj )
+        if( objects->z( i ) == obj )
         {
             objects->remove( i );
             i--;