[Crash] Fix spell in AESpell related to beacons (#3659)

This commit is contained in:
Chris Miles
2023-10-29 18:45:24 -05:00
committed by GitHub
parent fef629e1df
commit 0b452f4ec1
3 changed files with 12 additions and 0 deletions
+10
View File
@@ -5850,3 +5850,13 @@ void EntityList::DamageArea(
}
}
}
void EntityList::RemoveFromBeacons(Mob *p_mob)
{
for (auto it = beacon_list.begin(); it != beacon_list.end(); ++it) {
if (it->second == p_mob) {
beacon_list.erase(it);
break;
}
}
}