mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 12:53:20 +00:00
Hopefully fix witch crash
This commit is contained in:
parent
8338263ccb
commit
ac1897d5fa
4 changed files with 3 additions and 4 deletions
|
@ -352,11 +352,11 @@ void ApplyTroll(int victim, const char[] name, int activator, trollModifier modi
|
|||
}
|
||||
}
|
||||
|
||||
bool isActive = IsTrollActive(victim, troll.name);
|
||||
bool isActive = Trolls[trollIndex].activeFlagClients[victim] > -1;
|
||||
|
||||
// Toggle on flags for client, if it's not a single run.
|
||||
if(modifier & TrollMod_Constant) {
|
||||
Trolls[troll.id].activeFlagClients[victim] = isActive ? -1 : flags;
|
||||
Trolls[trollIndex].activeFlagClients[victim] = isActive ? -1 : flags;
|
||||
}
|
||||
|
||||
// Applies any custom logic needed for a troll, mostly only used for TrollMod_Instant
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue