Fix pcx extension check

This commit is contained in:
Alexander Batalov 2022-08-14 23:22:37 +03:00
parent c5c5ecd499
commit 957c5af66b
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ unsigned char* datafileReadRaw(char* path, int* widthPtr, int* heightPtr)
char* mangledPath = gDatafileNameMangler(path); char* mangledPath = gDatafileNameMangler(path);
char* dot = strrchr(mangledPath, '.'); char* dot = strrchr(mangledPath, '.');
if (dot != NULL) { if (dot != NULL) {
if (compat_stricmp(dot + 1, "pcx")) { if (compat_stricmp(dot + 1, "pcx") == 0) {
return pcxRead(mangledPath, widthPtr, heightPtr, gDatafilePalette); return pcxRead(mangledPath, widthPtr, heightPtr, gDatafilePalette);
} }
} }