diff options
author | Alejandro Colomar <Colomar.6.4.3@GMail.com> | 2018-09-12 23:06:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-12 23:06:59 +0200 |
commit | 41446707dc14a8bbedb4d428cd1eb86e41a860b6 (patch) | |
tree | cd65cb19d74ca5364adb3579730ad9f28d10b73e | |
parent | b28ed3c7485ea4e4c4bb738c630723a64d5d8e15 (diff) | |
parent | 2ab2809a79c262852db3a0d3e107f568b1f9d752 (diff) |
Merge pull request #57 from AlejandroColomar/3.1
Fix bug that impeded loading a game on Windows (errno)
-rw-r--r-- | modules/ctrl/src/start.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/ctrl/src/start.c b/modules/ctrl/src/start.c index cad72c9..e734b86 100644 --- a/modules/ctrl/src/start.c +++ b/modules/ctrl/src/start.c @@ -108,6 +108,8 @@ static void start_load (void) /* size & game init (sets errno) */
int rows;
int cols;
+
+ errno = 0;
game_init_load(&rows, &cols);
if (!errno) {
|