Core/Entities: add extra use of UPDATETYPE_CREATE_OBJECT2 (#20955)

(cherry picked from commit 51c4196acf)
This commit is contained in:
Gustavo
2017-12-15 22:11:02 -02:00
committed by funjoker
parent f60b0ead83
commit 044110d423
3 changed files with 5 additions and 0 deletions

View File

@@ -728,7 +728,9 @@ bool Map::AddToMap(T* obj)
//something, such as vehicle, needs to be update immediately
//also, trigger needs to cast spell, if not update, cannot see visual
obj->SetIsNewObject(true);
obj->UpdateObjectVisibilityOnCreate();
obj->SetIsNewObject(false);
return true;
}