Explorar el Código

Absturz beim aufheben von Gegenständen behoben

Kolja Strohm hace 5 años
padre
commit
7a7c1435cc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      StickmanWorldOnline/Spiel.cpp

+ 1 - 1
StickmanWorldOnline/Spiel.cpp

@@ -830,8 +830,8 @@ void Spiel::spielerActivate( Spieler *zSpieler )
     {
         if( items.z( i )->intersectsWith( zSpieler ) )
         {
-            items.remove( i );
             zSpieler->addItem( items.z( i )->getTyp(), 1, this );
+            items.remove( i );
             i--;
         }
     }