Fix pcx extension check
This commit is contained in:
parent
c5c5ecd499
commit
957c5af66b
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue