From 6331ec57075f3d87ccd5a49c60ec8cc495422cf3 Mon Sep 17 00:00:00 2001 From: drmortalwombat <90205530+drmortalwombat@users.noreply.github.com> Date: Mon, 11 Apr 2022 07:46:50 +0200 Subject: [PATCH] Fix crash with macro undefine --- oscar64/Scanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oscar64/Scanner.cpp b/oscar64/Scanner.cpp index b6f914b..50e8f3e 100644 --- a/oscar64/Scanner.cpp +++ b/oscar64/Scanner.cpp @@ -241,7 +241,7 @@ void MacroDict::Insert(Macro * macro) for (int i = 0; i < size; i++) { - if (entries[i]) + if (entries[i] && entries[i]->mIdent) Insert(entries[i]); } delete[] entries;