fix: bots are not killable after the changelevel. fixes #143

This commit is contained in:
ds 2020-07-15 21:58:57 +03:00
commit 2580c9478c
2 changed files with 2 additions and 1 deletions

View file

@ -91,6 +91,7 @@ void BotManager::createKillerEntity () {
void BotManager::destroyKillerEntity () {
if (!game.isNullEntity (m_killerEntity)) {
engfuncs.pfnRemoveEntity (m_killerEntity);
m_killerEntity = nullptr;
}
}