/*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
{
debug(("Deleting unreferenced Boss...\n"));
+ if(map.mainBossPart == map.boss[i])
+ map.mainBossPart = NULL;
delete map.boss[i];
map.boss[i] = NULL;
- }
-
- self->referenced = false;
+ } else
+ self->referenced = false;
}
}
else if (self->actionFinished())