DjWarmonger před 14 roky
rodič
revize
8c7f574b01
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/CSpellHandler.cpp

+ 1 - 1
lib/CSpellHandler.cpp

@@ -311,7 +311,7 @@ void CSpellHandler::loadSpells()
 		spells[spellID]->range.resize(4);
 		int idx = 0;
 		BOOST_FOREACH(const JsonNode &range, spell["ranges"].Vector())
-			spells[spellID]->range[idx] = range.String();
+			spells[spellID]->range[idx++] = range.String();
 	}
 
 	spells.push_back(spells[80]); //clone Acid Breath attributes for Acid Breath damage effect