diff options
author | Tremulous Test Server <tremtest@d1stkfactory> | 2015-01-29 22:09:01 +0000 |
---|---|---|
committer | Tremulous Test Server <tremtest@d1stkfactory> | 2015-01-29 22:09:01 +0000 |
commit | 48998ab22fc2b36a7c4a44ce697aa4315ea0be92 (patch) | |
tree | 6390b5a992c31c322c70ce81f86fed67305414b0 /src/game/g_buildable.c | |
parent | 7545415fe3ea29919e4dacfd4eedec7710924ff0 (diff) |
Fixed null pointer accesses that caused the game to crash.
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index bf353bf..d855af5 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2843,7 +2843,7 @@ void HMedistat_Think( gentity_t *self ) } else if( SPAWN_WITH_MEDKIT && !BG_InventoryContainsUpgrade( UP_MEDKIT, player->client->ps.stats ) ) - BG_AddUpgradeToInventory( UP_MEDKIT, self->enemy->client->ps.stats ); + BG_AddUpgradeToInventory( UP_MEDKIT, player->client->ps.stats ); } } } |