forked from UNLOZE/sm-plugins
ExtraCommands+ForceInputs: Prevent strncmp with -1 (Crashes on newer sourcemods)
This commit is contained in:
@@ -168,7 +168,9 @@ public Action Command_ForceInput(int client, int args)
|
||||
}
|
||||
else
|
||||
{
|
||||
int Wildcard = FindCharInString(sArguments[0], '*');
|
||||
int Wildcard = -1;
|
||||
if((Wildcard = FindCharInString(sArguments[0], '*')) == -1)
|
||||
Wildcard = 256;
|
||||
|
||||
int entity = INVALID_ENT_REFERENCE;
|
||||
while((entity = FindEntityByClassname(entity, "*")) != INVALID_ENT_REFERENCE)
|
||||
|
||||
Reference in New Issue
Block a user