ae71612dea
src/p_enemy.cc:531:26: error: ordered comparison between pointer and zero ('struct mobj_s **' and 'int') if (brain_spots.targets > 0) ~~~~~~~~~~~~~~~~~~~ ^ ~ src/w_sprite.cc:578:42: error: ordered comparison between pointer and zero ('spriteframe_c *' and 'int') if (sprites[states[i].sprite]->frames > 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~ Reported by: antoine (via exp-run)
11 lines
258 B
C++
11 lines
258 B
C++
--- src/p_enemy.cc.orig 2011-03-31 12:12:40 UTC
|
|
+++ src/p_enemy.cc
|
|
@@ -528,7 +528,7 @@ void P_FreeShootSpots(void)
|
|
if (brain_spots.number < 0)
|
|
return;
|
|
|
|
- if (brain_spots.targets > 0)
|
|
+ if (brain_spots.targets)
|
|
{
|
|
SYS_ASSERT(brain_spots.targets);
|
|
|