1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +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()) {
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()) {
battleBacks[idx].push_back(t.String());
idx++;