Fix occasional errors related to SV_FindIndex

Some maps (and mods) declare many sounds, sounds with the same name would be present more than once because the case was taken into account
This commit is contained in:
smallmodel 2025-01-05 19:54:32 +01:00
parent 8a8ac2e3d1
commit 2c738fa28e
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -166,7 +166,7 @@ int SV_FindIndex( const char *name, int start, int max, qboolean create ) {
if( !s || !s[ 0 ] ) {
break;
}
if( !strcmp( s, name ) ) {
if( !Q_stricmp( s, name ) ) {
return i;
}
}