Prevent error if Resource table is empty

This commit is contained in:
Clownacy 2020-03-31 20:25:15 +01:00
parent b57ccd7ed5
commit 6be5aac70d

View file

@ -152,6 +152,7 @@ static const struct
{"ORG", "ZONBIE", rZonbie, sizeof(rZonbie)}, {"ORG", "ZONBIE", rZonbie, sizeof(rZonbie)},
{"WAVE", "WAVE100", rWave, sizeof(rWave)}, {"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) const unsigned char* FindResource(const char *name, const char *type, size_t *size)