diff --git a/source/games/duke/src/inlines.h b/source/games/duke/src/inlines.h index 47a1af372..2d672d73a 100644 --- a/source/games/duke/src/inlines.h +++ b/source/games/duke/src/inlines.h @@ -60,7 +60,7 @@ inline void settileflag(int flag, const std::initializer_list& types) inline bool wallswitchcheck(int s) { - return !!(tileinfo[s].flags & TFLAG_WALLSWITCH); + return !!(tileinfo[sprite[s].picnum].flags & TFLAG_WALLSWITCH); } inline int checkcursectnums(int se)