From 4aed2f6dde54ee1476ae5fc8b0faf7a0f4a6037d Mon Sep 17 00:00:00 2001
From: "p.kosyh@gmail.com"
Date: Sun, 6 Mar 2011 20:19:20 +0000
Subject: [PATCH] fix in initializ
---
src/sdl-instead/game.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/sdl-instead/game.c b/src/sdl-instead/game.c
index 3def0d6..2758399 100644
--- a/src/sdl-instead/game.c
+++ b/src/sdl-instead/game.c
@@ -99,6 +99,7 @@ out:
int game_select(const char *name)
{
+ int rc;
struct game *g;
FREE(last_cmd);
game_stop_mus(500);
@@ -134,9 +135,9 @@ int game_select(const char *name)
return -1;
}
- instead_function("game:ini", NULL); instead_clear();
+ rc = instead_function("game:ini", NULL); instead_clear();
- return 0;
+ return rc;
} else {
game_use_theme();
game_theme_init();