Core/Globals: Fixed FormatException on startup (#16)
This commit is contained in:
@@ -4010,7 +4010,7 @@ namespace Game
|
|||||||
|
|
||||||
if (data.rotation.X < -1.0f || data.rotation.X > 1.0f)
|
if (data.rotation.X < -1.0f || data.rotation.X > 1.0f)
|
||||||
{
|
{
|
||||||
Log.outError(LogFilter.Sql, "Table `gameobject` has gameobject (GUID: {0} Entry: {1}) with invalid rotationX ({1}) value, skip", guid, data.id, data.rotation.X);
|
Log.outError(LogFilter.Sql, "Table `gameobject` has gameobject (GUID: {0} Entry: {1}) with invalid rotationX ({2}) value, skip", guid, data.id, data.rotation.X);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4022,13 +4022,13 @@ namespace Game
|
|||||||
|
|
||||||
if (data.rotation.Z < -1.0f || data.rotation.Z > 1.0f)
|
if (data.rotation.Z < -1.0f || data.rotation.Z > 1.0f)
|
||||||
{
|
{
|
||||||
Log.outError(LogFilter.Sql, "Table `gameobject` has gameobject (GUID: {0} Entry: {1}) with invalid rotationZ ({3}) value, skip", guid, data.id, data.rotation.Z);
|
Log.outError(LogFilter.Sql, "Table `gameobject` has gameobject (GUID: {0} Entry: {1}) with invalid rotationZ ({2}) value, skip", guid, data.id, data.rotation.Z);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.rotation.W < -1.0f || data.rotation.W > 1.0f)
|
if (data.rotation.W < -1.0f || data.rotation.W > 1.0f)
|
||||||
{
|
{
|
||||||
Log.outError(LogFilter.Sql, "Table `gameobject` has gameobject (GUID: {0} Entry: {1}) with invalid rotationW ({4}) value, skip", guid, data.id, data.rotation.W);
|
Log.outError(LogFilter.Sql, "Table `gameobject` has gameobject (GUID: {0} Entry: {1}) with invalid rotationW ({2}) value, skip", guid, data.id, data.rotation.W);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user