summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2010-07-20 18:18:37 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:39 +0000
commitd78c890af21b6ae298174db5991b9efec2e4b688 (patch)
treecd76b5928b5c0fe57bacfb8d3e33e01bcea64cf9 /src/game
parentcb9a8f0f3f4ded29b681edc81d3800d04e097823 (diff)
* Fix the search cache in G_Reactor and G_Overmind
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_buildable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 75cd07e1..35aef2db 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -502,7 +502,7 @@ gentity_t *G_Reactor( void )
static gentity_t *rc;
// If cache becomes invalid renew it
- if( !rc || rc->s.eType != ET_BUILDABLE || rc->s.modelindex == BA_H_REACTOR )
+ if( !rc || rc->s.eType != ET_BUILDABLE || rc->s.modelindex != BA_H_REACTOR )
rc = G_FindBuildable( BA_H_REACTOR );
// If we found it and it's alive, return it
@@ -517,7 +517,7 @@ gentity_t *G_Overmind( void )
static gentity_t *om;
// If cache becomes invalid renew it
- if( !om || om->s.eType != ET_BUILDABLE || om->s.modelindex == BA_A_OVERMIND )
+ if( !om || om->s.eType != ET_BUILDABLE || om->s.modelindex != BA_A_OVERMIND )
om = G_FindBuildable( BA_A_OVERMIND );
// If we found it and it's alive, return it