From 7637dc5ad6a9786735c43eedb7e9b5cd7c1ccbae Mon Sep 17 00:00:00 2001 From: GriffinR Date: Sat, 22 Feb 2025 18:47:52 -0500 Subject: [PATCH] Fix Qt5 build --- src/project.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/project.cpp b/src/project.cpp index 41375270..0b9b2af4 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -2720,7 +2720,8 @@ bool Project::readEventGraphics() { // Strip the address-of operator to get the pointer's name. We'll use this name to get data about the event's sprite. // If we don't recognize the name, ignore it. The event will use a default sprite. - QString info_label = pointerMap[gfxName].replace("&", ""); + QString info_label = pointerMap.value(gfxName); + info_label.replace("&", ""); if (!gfxInfos.contains(info_label)) continue; const QHash gfxInfoAttributes = gfxInfos[info_label];