Guest User

Untitled

a guest
May 17th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp
  2. index a2e70e9..ad0ba65 100644
  3. --- a/src/server/game/AI/SmartScripts/SmartScript.cpp
  4. +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp
  5. @@ -2752,10 +2752,14 @@ void SmartScript::OnUpdate(uint32 const diff)
  6. bool needCleanup = true;
  7. if (!mTimedActionList.empty())
  8. {
  9. + int j = 0;
  10. for (SmartAIEventList::iterator i = mTimedActionList.begin(); i != mTimedActionList.end(); ++i)
  11. {
  12. + ++j;
  13. + sLog->outCrash("Loop nº %d",j);
  14. if ((*i).enableTimed)
  15. {
  16. + sLog->outCrash("(*i).enableTimed = TRUE");
  17. UpdateTimer(*i, diff);
  18. needCleanup = false;
  19. }
Add Comment
Please, Sign In to add comment