summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2024-04-23 22:55:51 +0200
committerRay <[email protected]>2024-04-23 22:55:51 +0200
commit2e774432090db1be697d2e4e5f49ea91ca038cd3 (patch)
tree8b0a499f539c23853983d4fe95300363b192175f
parentf15455552da353dfb7055b6fa020ba73d71de88e (diff)
downloadraylib-2e774432090db1be697d2e4e5f49ea91ca038cd3.tar.gz
raylib-2e774432090db1be697d2e4e5f49ea91ca038cd3.zip
WARNING: Fix breaking issue (introduced some days ago)
-rw-r--r--src/rcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 29885c39..b229589f 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1964,7 +1964,7 @@ const char *GetFileName(const char *filePath)
if (filePath != NULL) fileName = strprbrk(filePath, "\\/");
- if (fileName != NULL) return filePath;
+ if (fileName == NULL) return filePath;
return fileName + 1;
}