- added runtime checks for the state usage flags.
This commit is contained in:
parent
4f998fa879
commit
647e1399f1
4 changed files with 26 additions and 0 deletions
|
|
@ -2437,6 +2437,7 @@ void ZCCCompiler::CompileStates()
|
|||
auto sl = static_cast<ZCC_StateLine *>(st);
|
||||
FState state;
|
||||
memset(&state, 0, sizeof(state));
|
||||
state.UseFlags = flags;
|
||||
if (sl->Sprite->Len() != 4)
|
||||
{
|
||||
Error(sl, "Sprite name must be exactly 4 characters. Found '%s'", sl->Sprite->GetChars());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue