diff --git a/source/core/screenjob.cpp b/source/core/screenjob.cpp index 5641e0f58..872b95468 100644 --- a/source/core/screenjob.cpp +++ b/source/core/screenjob.cpp @@ -157,7 +157,7 @@ public: } ototalclock += delay; - for (int i = 0; animSnd[i].framenum >= 0; i++) + if (animSnd) for (int i = 0; animSnd[i].framenum >= 0; i++) { if (animSnd[i].framenum == curframe) { diff --git a/source/games/duke/src/game_misc.cpp b/source/games/duke/src/game_misc.cpp index b5359312c..68c332348 100644 --- a/source/games/duke/src/game_misc.cpp +++ b/source/games/duke/src/game_misc.cpp @@ -706,8 +706,7 @@ void cameratext(int i) void dobonus(int bonusonly, const CompletionFunc& completion) { - if (isRRRA()) { if (completion) completion(false); } - else if (isRR()) dobonus_r(bonusonly, completion); + if (isRR()) dobonus_r(bonusonly, completion); else dobonus_d(bonusonly, completion); }