- another crash in Blood

This commit is contained in:
Christoph Oelckers 2019-10-08 01:37:43 +02:00
parent 50e6d364be
commit 13115ad217

View file

@ -122,6 +122,7 @@ unsigned PaletteManager::FindPalette(const uint8_t *paldata)
unsigned PaletteManager::FindPalswap(const uint8_t* paldata) unsigned PaletteManager::FindPalswap(const uint8_t* paldata)
{ {
if (paldata == nullptr) return 0;
auto crc32 = CalcCRC32(paldata, 256 * numshades); auto crc32 = CalcCRC32(paldata, 256 * numshades);
for (unsigned int i = 0; i < palswaps.Size(); i++) for (unsigned int i = 0; i < palswaps.Size(); i++)
{ {