Fix Qt5 build

This commit is contained in:
GriffinR
2025-02-22 18:47:52 -05:00
parent 491b003f2f
commit 7637dc5ad6

View File

@@ -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<QString, QString> gfxInfoAttributes = gfxInfos[info_label];