Core/Player: fixed a typo that was causing area trigger geometric checks to return false positive results

This commit is contained in:
Ovahlord
2020-02-08 18:45:28 +01:00
parent b7f7e99d63
commit 274877ab67

View File

@@ -2290,7 +2290,7 @@ bool Player::IsInAreaTriggerRadius(AreaTriggerEntry const* trigger) const
else
{
Position center(trigger->Pos.X, trigger->Pos.Y, trigger->Pos.Z, trigger->Box_yaw);
if (!IsWithinBox(center, trigger->Box_height / 2.f, trigger->Box_length / 2.f, trigger->Box_height / 2.f))
if (!IsWithinBox(center, trigger->Box_length / 2.f, trigger->Box_width / 2.f, trigger->Box_height / 2.f))
return false;
}