errorlog:
Looks like the spectator doesn't get destroyed when the level ends.Assertion failed: ghost == NULL && "only one flySpectator allowed", file world_entities/spectator.cc, line 138
Maybe someone could have a look at that.
Moderator: PPS-Leaders
Looks like the spectator doesn't get destroyed when the level ends.Assertion failed: ghost == NULL && "only one flySpectator allowed", file world_entities/spectator.cc, line 138
Code: Select all
Spectator::~Spectator ()
{
this->setPlayer(NULL);
ghost = NULL; <-----------------------
}
I suggest this solution. so deleting of an other spectator won't set ghost = NULLx3n wrote:Adding the marked line to the destructor in spectator.cc solves the problem, but I don't know if this is a good solution.
Code: Select all
Spectator::~Spectator () { this->setPlayer(NULL); ghost = NULL; <----------------------- }
Code: Select all
Spectator::~Spectator ()
{
this->setPlayer(NULL);
if ( this == ghost )
ghost = NULL;
}
Code: Select all
Sending src/world_entities/spectator.cc
svn: Commit failed (details follow):
svn: CHECKOUT of '/orxonox/!svn/ver/10618/trunk/src/world_entities/spectator.cc': 403 Forbidden (https://svn.orxonox.net)
Done. It's in the trunk.chrigi wrote:Does this solve the problem?Code: Select all
Spectator::~Spectator () { this->setPlayer(NULL); if ( this == ghost ) ghost = NULL; }
Could someone commit this? I can't!
Code: Select all
Sending src/world_entities/spectator.cc svn: Commit failed (details follow): svn: CHECKOUT of '/orxonox/!svn/ver/10618/trunk/src/world_entities/spectator.cc': 403 Forbidden (https://svn.orxonox.net)
Users browsing this forum: No registered users and 1 guest