[StopSound] Fix music if statement.

This commit is contained in:
zaCade 2023-08-12 20:23:21 +02:00
parent 7b4b8fee77
commit f8a4043e5d

View File

@ -770,7 +770,7 @@ public void OnReloadEffect(DataPack pack)
public Action Hook_AmbientSound(char sample[PLATFORM_MAX_PATH], int &entity, float &volume, int &level, int &pitch, float pos[3], int &flags, float &delay)
{
// Are we playing music?
if(!strncmp(sample, "music", 5, false) && !strncmp(sample, "#", 1, false))
if(strncmp(sample, "music", 5, false) != 0 && strncmp(sample, "#", 1, false) != 0)
return Plugin_Continue;
char sEntity[16];