mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10118] Check gameobject scale at loading (strict DB error filter)
This let avoid check scale value at it
This commit is contained in:
parent
969986a596
commit
cd0bbabf9a
3 changed files with 9 additions and 4 deletions
|
|
@ -6000,6 +6000,14 @@ void ObjectMgr::LoadGameobjectInfo()
|
|||
if (!goInfo)
|
||||
continue;
|
||||
|
||||
|
||||
if (goInfo->size <= 0.0f) // prevent use too small scales
|
||||
{
|
||||
ERROR_DB_STRICT_LOG("Gameobject (Entry: %u GoType: %u) have too small size=%f",
|
||||
goInfo->id, goInfo->type, goInfo->size);
|
||||
const_cast<GameObjectInfo*>(goInfo)->size = DEFAULT_OBJECT_SCALE;
|
||||
}
|
||||
|
||||
// some GO types have unused go template, check goInfo->displayId at GO spawn data loading or ignore
|
||||
|
||||
switch(goInfo->type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue