- fixed incorrect error method call in decal parser.

This commit is contained in:
Christoph Oelckers 2015-11-29 11:35:12 +01:00
parent 9bfd676783
commit 5515cb02a6

View file

@ -432,7 +432,7 @@ WORD FDecalLib::GetDecalID (FScanner &sc)
unsigned long num = strtoul (sc.String, NULL, 10); unsigned long num = strtoul (sc.String, NULL, 10);
if (num < 1 || num > 65535) if (num < 1 || num > 65535)
{ {
sc.MustGetStringName ("Decal ID must be between 1 and 65535"); sc.ScriptError ("Decal ID must be between 1 and 65535");
} }
return (WORD)num; return (WORD)num;
} }