diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 7173b271a..58daa6a2d 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -1514,6 +1514,18 @@ void ObjectMgr::LoadGameobjects() int16 GuidPoolId = fields[17].GetInt16(); int16 EntryPoolId = fields[18].GetInt16(); + if (data.rotation0 < -1.0f || data.rotation0 > 1.0f) + { + sLog.outErrorDb("Table `gameobject` have gameobject (GUID: %u Entry: %u) with invalid rotation0 (%f) value, skip", guid, data.id, data.rotation0); + continue; + } + + if (data.rotation1 < -1.0f || data.rotation1 > 1.0f) + { + sLog.outErrorDb("Table `gameobject` have gameobject (GUID: %u Entry: %u) with invalid rotation1 (%f) value, skip", guid, data.id, data.rotation1); + continue; + } + if (data.rotation2 < -1.0f || data.rotation2 > 1.0f) { sLog.outErrorDb("Table `gameobject` have gameobject (GUID: %u Entry: %u) with invalid rotation2 (%f) value, skip", guid, data.id, data.rotation2); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 4c588c1cc..f8b879726 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11526" + #define REVISION_NR "11527" #endif // __REVISION_NR_H__