diff --git a/client/Graphics.cpp b/client/Graphics.cpp index 730d53316..8a785fd0a 100644 --- a/client/Graphics.cpp +++ b/client/Graphics.cpp @@ -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++;