From 10bc01c000016be55c1e7bb9d6dc32eab4ab75b4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 19 Nov 2016 09:10:31 +0100 Subject: [PATCH] - fixed yet another place where VS did not warn about improper use of NULL. --- src/d_dehacked.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {