Commit 6698a7f1 authored by nanahira's avatar nanahira

Merge branch 'skin_fh' into skin

parents fa6e002e 5404c437
...@@ -47,7 +47,7 @@ bool Game::Initialize() { ...@@ -47,7 +47,7 @@ bool Game::Initialize() {
if(gameConf.skin_index < 0) if(gameConf.skin_index < 0)
index = rand() % count; index = rand() % count;
else if((size_t)gameConf.skin_index <= skins.size()) 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) if(index >= 0)
skinSystem->applySkin(skins[index].c_str()); 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