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:
parent
d71ed76a0f
commit
04995938dc
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user