From 731d87cab6975f93878e8066e328eee2e8115f29 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 19 Oct 2013 17:04:58 +0200 Subject: Fixed negative attribute values Note @Bertram25: c++11 comes with lowest() min() for float types only returns the next positive value > 0. --- src/game-server/attributemanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp index 3a19e1b6..08b933a2 100644 --- a/src/game-server/attributemanager.cpp +++ b/src/game-server/attributemanager.cpp @@ -118,7 +118,7 @@ void AttributeManager::readAttributeNode(xmlNodePtr attributeNode) false); attribute->modifiers = std::vector(); attribute->minimum = XML::getFloatProperty(attributeNode, "minimum", - std::numeric_limits::min()); + std::numeric_limits::lowest()); attribute->maximum = XML::getFloatProperty(attributeNode, "maximum", std::numeric_limits::max()); attribute->modifiable = XML::getBoolProperty(attributeNode, "modifiable", -- cgit v1.2.3-70-g09d2