From c7f38761ed1cc524e98db754cadb2c6af1578b88 Mon Sep 17 00:00:00 2001
From: Daniel O'Brien <marmot.daniel@gmail.com>
Date: Sat, 16 Nov 2013 22:46:27 +1100
Subject: [PATCH] removed magic number

---
 source/Entities/Player.cpp | 4 ++--
 1 file 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