mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 11:19:07 +00:00
Fix bad type passed to sscanf
This commit is contained in:
parent
4061ada656
commit
fab78e58e9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue