From ba4eb3f9069e771860865ca4d1ef3b1c714e8a02 Mon Sep 17 00:00:00 2001 From: Dino Bollinger Date: Sat, 13 Jun 2020 14:20:57 +0200 Subject: [PATCH] Fix crash during demo playback caused by a mistake in 5132b41f --- source/duke3d/src/savegame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/savegame.cpp b/source/duke3d/src/savegame.cpp index faf2c7b94..c79b896fa 100644 --- a/source/duke3d/src/savegame.cpp +++ b/source/duke3d/src/savegame.cpp @@ -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; }