Commit 5404c437 authored by nanahira's avatar nanahira

fix

parent 3f7f76fa
......@@ -47,7 +47,7 @@ bool Game::Initialize() {
if(gameConf.skin_index < 0)
index = rand() % count;
else if((size_t)gameConf.skin_index <= skins.size())
index = gameConf.skin_index - 1;
index = skins.size() - gameConf.skin_index; // reverse index
if(index >= 0)
skinSystem->applySkin(skins[index].c_str());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment