aboutsummaryrefslogtreecommitdiff
path: root/src/common/Debugging/WheatyExceptionReport.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-04-27 13:57:46 +0200
committerjackpoz <giacomopoz@gmail.com>2019-04-27 13:57:46 +0200
commit1c833f28e471e3787f1d328e44af5f065ad9ca8c (patch)
tree21c0516a50ea0e0aa0d658a0a57b8e604bf883a6 /src/common/Debugging/WheatyExceptionReport.cpp
parent56b65329e5dc2fb04d5b1d6068d957490146ee89 (diff)
Core/Maps: Fix crash caused by setActive(false) called after DespawnOrUnsummon()
Fix crash caused by WorldObject::setActive(false) called after WorldObject::DespawnOrUnsummon() happening because the WorldObject would be set as not active but then Map::RemoveFromActiveHelper() would not be called because of not being in world anymore. Whenever setActive() gets desync'd with what Map actually contains a rare crash would happen since Map only reads a few values of the active WorldObject, making it hard to reproduce. If this happens again some ASSERT calls should be added (or a check in Map::RemoveFromMap() could be added about if the WorldObject is in Map::m_activeNonPlayers container).
Diffstat (limited to 'src/common/Debugging/WheatyExceptionReport.cpp')
0 files changed, 0 insertions, 0 deletions