Core: fixed another warning and fixed build

This commit is contained in:
Ovahlord committed 2019-07-25 01:17:52 +02:00
1 parent 9435d6aeb2
commit 7cbd370c7d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2293,7 +2293,7 @@ void Spell::AddGOTarget(GameObject* go, uint32 effectMask)
if (!m_spellInfo->HasAttribute(SPELL_ATTR9_SPECIAL_DELAY_CALCULATION))
target.timeDelay = uint64(floor(dist / m_spellInfo->Speed * 1000.0f));
else
target.timeDelay = uint64(m_spellInfo->Speed * 1000.0f);
target.timeDelay = uint64(float(m_spellInfo->Speed * 1000.0f));
if (!m_delayMoment || m_delayMoment > target.timeDelay)
m_delayMoment = target.timeDelay;