Fixed LoadCodepoints declaring a new local variable shadowing codpoints (#5430)

This commit is contained in:
Kivi 2025-12-24 08:59:51 +01:00 • committed by GitHub
commit ddb827fb6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2090,7 +2090,7 @@ int *LoadCodepoints(const char *text, int *count)
int textLength = TextLength(text);
// Allocate a big enough buffer to store as many codepoints as text bytes
int *codepoints = (int *)RL_CALLOC(textLength, sizeof(int));
codepoints = (int *)RL_CALLOC(textLength, sizeof(int));
int codepointSize = 0;
for (int i = 0; i < textLength; codepointCount++)