summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_buildable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 4bd8e963..fddbaf13 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1520,7 +1520,8 @@ void HRepeater_Use( gentity_t *self, gentity_t *other, gentity_t *activator )
if( !self->spawned )
return;
- G_GiveClientMaxAmmo( self, qtrue );
+ if( other )
+ G_GiveClientMaxAmmo( other, qtrue );
}