From f24ddad3fa0f843eb29a281426151cf1a5f31f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 23:47:11 +0300 Subject: add const to more classes, fix other small style issues. --- src/resources/itemdb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/resources/itemdb.cpp') diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 5905ef578..8fd4a9fdc 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -242,7 +242,8 @@ void ItemDB::load() node, "missile-particle", ""); const int hitEffectId = XML::getProperty(node, "hit-effect-id", paths.getIntValue("hitEffectId")); - const int criticalEffectId = XML::getProperty(node, "critical-hit-effect-id", + const int criticalEffectId = XML::getProperty( + node, "critical-hit-effect-id", paths.getIntValue("criticalHitEffectId")); SpriteDisplay display; -- cgit v1.2.3-60-g2f50