fix(Core): fix chests not despawning when opened in group (2) (#5387)
* fix(Core): fix chests not despawning when opened in group * fix(Core): fix crashes in pr #5371 * Replaced nullptr checks * Used if with initializer instead of separate scope
This commit is contained in:
parent
414296af06
commit
f70ed8b8ca
3 changed files with 13 additions and 0 deletions
|
|
@ -58,6 +58,7 @@ GameObject::GameObject() : WorldObject(false), MovableMapObject(),
|
|||
m_lootGenerationTime = 0;
|
||||
|
||||
ResetLootMode(); // restore default loot mode
|
||||
loot.sourceGameObject = this;
|
||||
m_stationaryPosition.Relocate(0.0f, 0.0f, 0.0f, 0.0f);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue