- fixed yet another place where VS did not warn about improper use of NULL.

This commit is contained in:
Christoph Oelckers 2016-11-19 09:10:31 +01:00
parent 3ce699bf9b
commit 10bc01c000

View file

@ -3084,7 +3084,7 @@ void FinishDehPatch ()
break; // State has already been checked so we reached a loop break; // State has already been checked so we reached a loop
} }
StateVisited[state] = true; 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) if (AmmoPerAttacks[i].ptr == nullptr)
{ {