From 012d40129bdefce0b758d8b5749a73f7db0a453d Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Mon, 16 Feb 2015 16:21:44 -0500 Subject: [PATCH] Fix fencepost error when reading numerical races --- src/classes/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/monster.cpp b/src/classes/monster.cpp index c93619404..cb971f933 100644 --- a/src/classes/monster.cpp +++ b/src/classes/monster.cpp @@ -489,7 +489,7 @@ std::istream& operator >> (std::istream& in, eRace& e){ e = eRace::HUMANOID; try { int i = boost::lexical_cast(key); - if(i > 0 && i < 20) + if(i >= 0 && i < 20) e = (eRace) i; } catch(boost::bad_lexical_cast) { if(key == "human")