Skip to content

Commit

Permalink
Fix coverity #29357
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Feb 27, 2015
1 parent 82bb12e commit 16821f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/supertux/statistics.cpp
Expand Up @@ -74,7 +74,8 @@ Statistics::serialize_to_squirrel(HSQUIRRELVM vm)
if (time != nv_time) scripting::store_float(vm, "time-needed", time);
if (secrets != nv_secrets) scripting::store_int(vm, "secrets-found", secrets);
if (total_secrets != nv_secrets) scripting::store_int(vm, "secrets-found-total", total_secrets);
sq_createslot(vm, -3);
if(SQ_FAILED(sq_createslot(vm, -3)))
throw scripting::SquirrelError(vm, "Couldn't create statistics table");
}

void
Expand Down

0 comments on commit 16821f2

Please sign in to comment.