1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-02 22:05:43 +02:00

Fixed bad battle backgrounds (introduced in r2334).

This commit is contained in:
Frank Zago 2011-09-03 03:53:08 +00:00
parent d71ed76a0f
commit 04995938dc

View File

@ -220,9 +220,9 @@ void Graphics::initializeBattleGraphics()
BOOST_FOREACH(const JsonNode &t, config["backgrounds"].Vector()) { BOOST_FOREACH(const JsonNode &t, config["backgrounds"].Vector()) {
idx++; idx++;
} }
battleBacks.resize(idx); battleBacks.resize(idx+1); // 1 to idx, 0 is unused
idx = 0; idx = 1;
BOOST_FOREACH(const JsonNode &t, config["backgrounds"].Vector()) { BOOST_FOREACH(const JsonNode &t, config["backgrounds"].Vector()) {
battleBacks[idx].push_back(t.String()); battleBacks[idx].push_back(t.String());
idx++; idx++;