From 957c5af66b3e7481f1fd5326661f581ec0ed4193 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sun, 14 Aug 2022 23:22:37 +0300 Subject: [PATCH] Fix pcx extension check --- src/datafile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datafile.cc b/src/datafile.cc index bccd470..00e9824 100644 --- a/src/datafile.cc +++ b/src/datafile.cc @@ -89,7 +89,7 @@ unsigned char* datafileReadRaw(char* path, int* widthPtr, int* heightPtr) char* mangledPath = gDatafileNameMangler(path); char* dot = strrchr(mangledPath, '.'); if (dot != NULL) { - if (compat_stricmp(dot + 1, "pcx")) { + if (compat_stricmp(dot + 1, "pcx") == 0) { return pcxRead(mangledPath, widthPtr, heightPtr, gDatafilePalette); } }