diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 895742d2c3..c4198a5559 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -162,7 +162,7 @@ namespace Path const utf8 * GetExtension(const utf8 * path) { const utf8 * lastDot = nullptr; - const utf8 * ch = path; + const utf8 * ch = GetFileName(path); for (; *ch != '\0'; ch++) { if (*ch == '.')