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