summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 a29997e1..3fb7296f 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -3149,7 +3149,7 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable,
// Don't allow a power source to be replaced by a dependant
if( team == TEAM_HUMANS &&
- G_PowerEntityForPoint( origin ) != ent &&
+ G_PowerEntityForPoint( origin ) == ent &&
buildable != BA_H_REPEATER &&
buildable != core )
continue;