summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 5bf063dc..75cd07e1 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -3120,7 +3120,7 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable,
if( team == TEAM_HUMANS &&
buildable != BA_H_REACTOR &&
buildable != BA_H_REPEATER &&
- G_PowerEntityForPoint( ent->s.origin ) != G_PowerEntityForPoint( origin ) )
+ ent->parentNode != G_PowerEntityForPoint( origin ) )
continue;
if( !ent->inuse )