newsbot
03.10.2017, 18:44
Автор: cala
<pre style='white-space:pre-wrap;width:81ex'>Playerbot: Fix crash due to floating point exception
In some cases, Unit::GetMaxHealth() can be 0 resulting in a floating
point exception.
Add a check to prevent that and force the health percentage to 0 as
such a player is obviously dead.</pre>
Подробнее... (https://github.com/cmangos/mangos-wotlk/commit/cc0abaef0863c6163c444986f82c788d073e8384)
<pre style='white-space:pre-wrap;width:81ex'>Playerbot: Fix crash due to floating point exception
In some cases, Unit::GetMaxHealth() can be 0 resulting in a floating
point exception.
Add a check to prevent that and force the health percentage to 0 as
such a player is obviously dead.</pre>
Подробнее... (https://github.com/cmangos/mangos-wotlk/commit/cc0abaef0863c6163c444986f82c788d073e8384)