summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorhristo <[email protected]>2021-03-03 16:41:15 +0200
committerGitHub <[email protected]>2021-03-03 15:41:15 +0100
commit81908f7960005e35a50d0675e970483989cd7ff2 (patch)
tree391b6bb84a0b608a09f08616e10fb3120f068707 /src/core.c
parente09f5179e6ff876ecccc5a74e929c055b07d8b98 (diff)
downloadraylib-81908f7960005e35a50d0675e970483989cd7ff2.tar.gz
raylib-81908f7960005e35a50d0675e970483989cd7ff2.zip
Removing +1 on comparing extesnions because this way it checked the file extension without the . against the file extension with the . resulting in always false. (#1629)
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index d5f58841..d7cea0be 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2325,7 +2325,7 @@ bool IsFileExtension(const char *fileName, const char *ext)
for (int i = 0; i < extCount; i++)
{
- if (TextIsEqual(fileExtLower, TextToLower(checkExts[i] + 1)))
+ if (TextIsEqual(fileExtLower, TextToLower(checkExts[i])))
{
result = true;
break;