@@ -70,8 +70,9 @@ void Base::tick( double time, Spiel *zSpiel )
e->addParameter( "Vorheriges Team", team ? team->getThis() : new Variable( NICHTS ) );
e->addParameter( "Nächstes Team", nextTeam ? nextTeam->getThis() : new Variable( NICHTS ) );
zSpiel->throwEvent( e );
- this->team->release();
- this->team = nextTeam;
+ if( team )
+ team->release();
+ team = nextTeam;
inChange = 0;
}