diff --git a/src/d_dehacked.cpp b/src/d_dehacked.cpp index 7f546b1ee..3ad1b2cd9 100644 --- a/src/d_dehacked.cpp +++ b/src/d_dehacked.cpp @@ -3084,7 +3084,7 @@ void FinishDehPatch () break; // State has already been checked so we reached a loop } StateVisited[state] = true; - for(unsigned j = 0; AmmoPerAttacks[j].func != NULL; j++) + for(unsigned j = 0; AmmoPerAttacks[j].func != NAME_None; j++) { if (AmmoPerAttacks[i].ptr == nullptr) {