Skip to content

Commit c7420cf

Browse files
committed
Fix cppcheck
1 parent 79c6ee8 commit c7420cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/squirrel/supertux_api.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static SQInteger wait(HSQUIRRELVM vm, float seconds, bool forced = false)
165165
{
166166
ssq::VM* ssq_vm = ssq::VM::get(vm);
167167
assert(ssq_vm);
168-
if (!ssq_vm->isThread()) return 0;
168+
if (ssq_vm && !ssq_vm->isThread()) return 0;
169169

170170
if (!forced)
171171
{

0 commit comments

Comments
 (0)