Fix crash during demo playback caused by a mistake in 5132b41f

This commit is contained in:
Dino Bollinger 2020-06-13 14:20:57 +02:00 committed by Christoph Oelckers
parent a5085c3631
commit ba4eb3f906

View file

@ -859,7 +859,7 @@ static int32_t getnumvar(const dataspec_t *spec)
{
int n = 0;
for (; spec->flags != DS_END; spec++)
if (spec->flags & (DS_STRING|DS_CMP|DS_NOCHK|DS_SAVEFN|DS_LOADFN))
if (!(spec->flags & (DS_STRING|DS_CMP|DS_NOCHK|DS_SAVEFN|DS_LOADFN)))
++n;
return n;
}