diff --git a/metamod/game_support.cpp b/metamod/game_support.cpp index bcb2117..95113d9 100644 --- a/metamod/game_support.cpp +++ b/metamod/game_support.cpp @@ -194,7 +194,7 @@ mBOOL DLLINTERNAL setup_gamedll(gamedll_t *gamedll) { STRNCPY(temp_str, knownfn, sizeof(temp_str)); strippedfn = temp_str; - char *loc = strrchr(strippedfn, '_'); + const char *loc = strrchr(strippedfn, '_'); // A small safety net here: make sure that we are dealing with // a file name at least four characters long and ending in