ref: 6be5aac70d20bbd752a310b1dc14f44715c3a3f7
parent: b57ccd7ed510a2141c93f4ae73c77145946c9786
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Mar 31 16:25:15 EDT 2020
Prevent error if Resource table is empty
--- a/src/Resource.cpp
+++ b/src/Resource.cpp
@@ -152,6 +152,7 @@
{"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)
--
⑨