- fixed bad use of FScanner::GetNumber and GetFloat in code inherited from ZDoomGL.

This could lead to bad error messages if some malformed definitions were used.
This commit is contained in:
Christoph Oelckers 2017-11-19 15:30:45 +01:00
commit f0dc619b5b
3 changed files with 48 additions and 48 deletions

View file

@ -269,7 +269,7 @@ extern int ScriptDepth;
inline float ParseFloat(FScanner &sc)
{
sc.GetFloat();
sc.MustGetFloat();
return float(sc.Float);
}
@ -277,7 +277,7 @@ inline float ParseFloat(FScanner &sc)
inline int ParseInt(FScanner &sc)
{
sc.GetNumber();
sc.MustGetNumber();
return sc.Number;
}