aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2022-03-08 14:42:02 +0100
committerArisotura <thetotalworm@gmail.com>2022-03-08 14:42:02 +0100
commitcce9de5ee1f51e906a644922b2ada6644d81287a (patch)
tree036e34db82045a873e889fe7e120337bb619148a /src/frontend/qt_sdl
parentfe96944fc096d8a410b75cdd8273987322275510 (diff)
BLARG
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/ROMManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/ROMManager.cpp b/src/frontend/qt_sdl/ROMManager.cpp
index d24e21a..304862e 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