From 6be5aac70d20bbd752a310b1dc14f44715c3a3f7 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 31 Mar 2020 20:25:15 +0100 Subject: [PATCH] Prevent error if Resource table is empty --- src/Resource.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Resource.cpp b/src/Resource.cpp index 3e2ac9a9..3aba8a16 100644 --- a/src/Resource.cpp +++ b/src/Resource.cpp @@ -152,6 +152,7 @@ static const struct {"ORG", "ZONBIE", rZonbie, sizeof(rZonbie)}, {"WAVE", "WAVE100", rWave, sizeof(rWave)}, + {"DUMMY", "DUMMY", NULL, 0} // Just here to prevent errors in the event the array is otherwise empty }; const unsigned char* FindResource(const char *name, const char *type, size_t *size)