mark loading.inProgress variable as volatile to prevent optimization bugs in threaded loading

This commit is contained in:
Sebastian Krzyszkowiak 2018-06-30 02:35:32 +02:00
parent 93859232d9
commit d5faec85ac

View file

@ -119,7 +119,7 @@ struct Game {
struct Gamestate* current;
int progress;
int loaded, toLoad;
bool inProgress;
volatile bool inProgress;
double time;
} loading;