소스 검색

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--;