diff -r baefc2c953ae -r e4359292e59a core/sourcemod.cpp --- a/core/sourcemod.cpp Sun Apr 17 16:12:45 2011 -0400 +++ b/core/sourcemod.cpp Sat Apr 23 21:53:53 2011 -0500 @@ -142,7 +142,7 @@ /* Store name of game directory by itself */ size_t len = strlen(gamepath); - for (size_t i = len - 1; i >= 0; i--) + for (size_t i = len - 1; i < len; i--) { if (gamepath[i] == PLATFORM_SEP_CHAR) {