[9397] Fixed unexpected rounding in healamount = healamount * int32(TakenTotalMod);

This commit is contained in:
VladimirMangos 2010-02-16 00:24:28 +03:00
parent 9e4829ecef
commit f9db93e78b
7 changed files with 41 additions and 40 deletions

View file

@ -8447,7 +8447,7 @@ uint32 ObjectMgr::GetScriptId(const char *name)
ScriptNameMap::const_iterator itr =
std::lower_bound(m_scriptNames.begin(), m_scriptNames.end(), name);
if(itr == m_scriptNames.end() || *itr != name) return 0;
return itr - m_scriptNames.begin();
return uint32(itr - m_scriptNames.begin());
}
void ObjectMgr::CheckScripts(ScriptMapMap const& scripts,std::set<int32>& ids)