summaryrefslogtreecommitdiffstats
path: root/source/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'source/Entities')
-rw-r--r--source/Entities/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Entities/Player.cpp b/source/Entities/Player.cpp
index 129d7df56..ccc7b89f1 100644
--- a/source/Entities/Player.cpp
+++ b/source/Entities/Player.cpp
@@ -370,9 +370,9 @@ short cPlayer::DeltaExperience(short a_Xp_delta)
m_CurrentXp += a_Xp_delta;
// Make sure they didn't subtract too much
- if(m_CurrentXp < 0)
+ if(m_CurrentXp < MIN_EXPERIENCE)
{
- m_CurrentXp = 0;
+ m_CurrentXp = MIN_EXPERIENCE;
}
// Update total for score calculation