Fix bad type passed to sscanf

--HG--
branch : develop
This commit is contained in:
kaetemi 2014-09-15 12:49:13 +02:00
parent 89604dbba4
commit 07caf402c2

View file

@ -581,7 +581,7 @@ void AISHEETS::CCreature::readGeorges(NLMISC::CSmartPtr<NLGEORGES::UForm> const&
} }
if (item.getValueByName(s, "Basics.FameForGuardAttack") && !s.empty()) if (item.getValueByName(s, "Basics.FameForGuardAttack") && !s.empty())
{ {
double tmp; float tmp;
sscanf(s.c_str(), "%f", &tmp); sscanf(s.c_str(), "%f", &tmp);
_FameForGuardAttack = (sint32)tmp; _FameForGuardAttack = (sint32)tmp;
} }