From cce9de5ee1f51e906a644922b2ada6644d81287a Mon Sep 17 00:00:00 2001 From: Arisotura Date: Tue, 8 Mar 2022 14:42:02 +0100 Subject: [PATCH] BLARG --- src/frontend/qt_sdl/ROMManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/qt_sdl/ROMManager.cpp b/src/frontend/qt_sdl/ROMManager.cpp index d24e21abfb..304862eb7b 100644 --- a/src/frontend/qt_sdl/ROMManager.cpp +++ b/src/frontend/qt_sdl/ROMManager.cpp @@ -87,6 +87,7 @@ std::string GetAssetPath(bool gba, std::string configpath, std::string ext, std: for (;;) { int i = configpath.length() - 1; + if (i < 0) break; if (configpath[i] == '/' || configpath[i] == '\\') configpath = configpath.substr(0, i); else