cepheid

An Aurora 4X clone
Log | Files | Refs | README

commit a4062422899170c146d9d6ad2ee62aac57740629
parent 27f288201cdede1fa73a1dd0f90af180b951326e
Author: hhvn <dev@hhvn.uk>
Date:   Sun,  4 Sep 2022 19:08:36 +0100

Fix warnings with loading.c

Diffstat:
Msrc/loading.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/loading.c b/src/loading.c @@ -56,7 +56,7 @@ loading_open(int steps, char *initstr) { shmdata->step = 0; ret->step = &shmdata->step; - ret->data = &shmdata->str; + ret->data = shmdata->str; if ((ret->pid = fork()) == -1) goto unmap; @@ -72,7 +72,7 @@ loading_open(int steps, char *initstr) { data = mmap(NULL, sizeof(struct shmdata), PROT_READ, MAP_SHARED, fd, 0); if (fd == -1 || data == MAP_FAILED) - data = initstr; + exit(1); SetWindowState(FLAG_WINDOW_TOPMOST); SetTargetFPS(LOADING_FPS);