summaryrefslogtreecommitdiffstats
path: root/source/Entities
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Entities/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Entities/Player.cpp b/source/Entities/Player.cpp
index 1f4f392ef..bf96a6eaa 100644
--- a/source/Entities/Player.cpp
+++ b/source/Entities/Player.cpp
@@ -613,7 +613,7 @@ void cPlayer::DoTakeDamage(TakeDamageInfo & a_TDI)
{
if (a_TDI.DamageType != dtInVoid)
{
- if (m_GameMode == eGameMode_Creative)
+ if (IsGameModeCreative())
{
// No damage / health in creative mode
return;