Skip to content

Commit

Permalink
Fix FOREACH_NO_BOTS #7
Browse files Browse the repository at this point in the history
  • Loading branch information
karimcambridge committed Oct 2, 2017
1 parent ba45d6e commit dda1f8b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions foreach.inc
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,10 @@ Notes:
public OnFilterScriptInit()
{
Iter_Clear(Player);
Iter_Clear(Bot);
Iter_Clear(Character);
#if defined _FOREACH_BOT && !defined FOREACH_NO_BOTS
Iter_Clear(Bot);
Iter_Clear(Character);
#endif
if (funcidx(YSI_gsOnPlayerDisconnect) != -1)
{
YSI_g_sCallbacks |= 1;
Expand Down Expand Up @@ -715,8 +717,10 @@ Notes:
{
// Clear everything.
Iter_Clear(Player);
Iter_Clear(Bot);
Iter_Clear(Character);
#if defined _FOREACH_BOT && !defined FOREACH_NO_BOTS
Iter_Clear(Bot);
Iter_Clear(Character);
#endif
if (funcidx(YSI_gsOnPlayerDisconnect) != -1)
{
YSI_g_sCallbacks |= 1;
Expand Down

0 comments on commit dda1f8b

Please sign in to comment.