- 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:
parent
de19efa79d
commit
f0dc619b5b
3 changed files with 48 additions and 48 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue