diff options
-rw-r--r-- | engines/glk/adrift/scgamest.cpp | 2 | ||||
-rw-r--r-- | engines/glk/adrift/scinterf.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/adrift/scgamest.cpp b/engines/glk/adrift/scgamest.cpp index ab92b413de..b928258dfe 100644 --- a/engines/glk/adrift/scgamest.cpp +++ b/engines/glk/adrift/scgamest.cpp @@ -793,7 +793,7 @@ sc_gameref_t gs_create(sc_var_setref_t vars, sc_prop_setref_t bundle, sc_filterr * * Return TRUE if pointer is a valid game, FALSE otherwise. */ -sc_bool gs_is_game_valid(sc_gameref_t game) { +sc_bool gs_is_game_valid(const sc_gameref_t game) { return game && game->magic == GAME_MAGIC; } diff --git a/engines/glk/adrift/scinterf.cpp b/engines/glk/adrift/scinterf.cpp index c01d99a511..a4cf650691 100644 --- a/engines/glk/adrift/scinterf.cpp +++ b/engines/glk/adrift/scinterf.cpp @@ -372,7 +372,7 @@ sc_game sc_game_from_callback(sc_int(*callback)(void *, sc_byte *, sc_int), void * Common function to verify that the game passed in to functions below * is a valid game. Returns TRUE on game error, FALSE if okay. */ -static sc_bool if_game_error(sc_gameref_t game, const sc_char *function_name) { +static sc_bool if_game_error(const sc_gameref_t game, const sc_char *function_name) { /* Check for invalid game -- null pointer or bad magic. */ if (!gs_is_game_valid(game)) { if (game) |