diff --git a/source/games/duke/src/animatesprites_d.cpp b/source/games/duke/src/animatesprites_d.cpp index 481602b55..fbbfbe869 100644 --- a/source/games/duke/src/animatesprites_d.cpp +++ b/source/games/duke/src/animatesprites_d.cpp @@ -495,7 +495,7 @@ void animatesprites_d(int x,int y,int a,int smoothratio) break; } - if (ScriptCode[actorinfo[s->picnum].scriptaddress]) + if (actorinfo[s->picnum].scriptaddress) { if(t4) { diff --git a/source/games/duke/src/animatesprites_r.cpp b/source/games/duke/src/animatesprites_r.cpp index 146727365..688c750d8 100644 --- a/source/games/duke/src/animatesprites_r.cpp +++ b/source/games/duke/src/animatesprites_r.cpp @@ -635,7 +635,7 @@ void animatesprites_r(int x,int y,int a,int smoothratio) break; } - if( ScriptCode[actorinfo[s->picnum].scriptaddress] && (t->cstat & 48) != 48) + if(actorinfo[s->picnum].scriptaddress && (t->cstat & 48) != 48) { if(t4) {