small fix for game switch
This commit is contained in:
parent
10d68d774a
commit
314fe0ec49
|
@ -13,8 +13,8 @@ LUA_LFLAGS=$(shell pkg-config --libs lua5.1)
|
|||
|
||||
# for arch linux (may be others) use this
|
||||
#
|
||||
# LUA_CFLAGS=$(shell pkg-config --cflags lua)
|
||||
# LUA_LFLAGS=$(shell pkg-config --libs lua)
|
||||
LUA_CFLAGS=$(shell pkg-config --cflags lua)
|
||||
LUA_LFLAGS=$(shell pkg-config --libs lua)
|
||||
#
|
||||
|
||||
SDL_CFLAGS=$(shell sdl-config --cflags)
|
||||
|
|
|
@ -54,9 +54,12 @@ int main(int argc, char **argv)
|
|||
|
||||
cfg_load();
|
||||
|
||||
if (game_sw)
|
||||
if (game_sw) {
|
||||
if (opt_game)
|
||||
free(opt_game);
|
||||
opt_game = game_sw;
|
||||
|
||||
}
|
||||
|
||||
if (opt_theme)
|
||||
game_theme_select(opt_theme);
|
||||
if (!curtheme)
|
||||
|
|
Reference in a new issue