summaryrefslogtreecommitdiffstats
path: root/source/cPlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/cPlayer.cpp')
-rw-r--r--source/cPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp
index da589a70f..fe3f5a7d6 100644
--- a/source/cPlayer.cpp
+++ b/source/cPlayer.cpp
@@ -322,7 +322,7 @@ void cPlayer::Heal( int a_Health )
void cPlayer::TakeDamage( int a_Damage, cEntity* a_Instigator )
{
- if ( !(GetWorld()->GetGameMode() == 1) ) {
+ if ( !(m_GameMode == 1) ) {
cPawn::TakeDamage( a_Damage, a_Instigator );
cPacket_UpdateHealth Health;