YTDB

YTDB (http://ytdb.ru/index.php)
-   CMaNGOS-4.3.4 Commits (http://ytdb.ru/forumdisplay.php?f=41)
-   -   Playerbot: Fix crash due to floating point exception (http://ytdb.ru/showthread.php?t=17198)

newsbot 07.01.2018 05:14

Playerbot: Fix crash due to floating point exception
 
Автор: 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.

(based on cmangos/mangos-wotlk@cc0abaef0)

Signed-off-by: Xfurry <xfurry.cmangos@outlook.com></pre>


Подробнее...


Текущее время: 02:49. Часовой пояс GMT +4.

YTDB - MaNGOS DataBase