diff --git a/sc2/src/sc2code/uqmdebug.c b/sc2/src/sc2code/uqmdebug.c index 71b084b64..a964b6725 100644 --- a/sc2/src/sc2code/uqmdebug.c +++ b/sc2/src/sc2code/uqmdebug.c @@ -58,7 +58,7 @@ static void dumpPlanetTypeCallback (int index, const PlanetFrame *planet, BOOLEAN instantMove = FALSE; BOOLEAN disableInteractivity = FALSE; -volatile void (*debugHook) (void) = NULL; +void (* volatile debugHook) (void) = NULL; void diff --git a/sc2/src/sc2code/uqmdebug.h b/sc2/src/sc2code/uqmdebug.h index 3e69e10b3..66fdd7cc7 100644 --- a/sc2/src/sc2code/uqmdebug.h +++ b/sc2/src/sc2code/uqmdebug.h @@ -29,7 +29,7 @@ extern BOOLEAN disableInteractivity; // If a function is assigned to this, it will be called from the main loop. -extern volatile void (*debugHook) (void); +extern void (* volatile debugHook) (void); // Called when the debug key (symbol 'Debug' in the keys.cfg) is pressed.