From 042d29aff46cf1ba1570ce3546f9e9ef4c4931f5 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Fri, 21 Sep 2012 14:47:14 +0200 Subject: [PATCH] fix setting level number in command line --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 455b005..781aea5 100644 --- a/src/main.c +++ b/src/main.c @@ -519,7 +519,7 @@ int main(int argc, char **argv){ while ((c = getopt (argc, argv, "l:s:")) != -1) switch (c) { case 'l': - game.level.current_level = optarg[0]-'0'; + game.level.input.current_level = optarg[0]-'0'; game.loadstate = GAMESTATE_LEVEL; break; case 's':