Core/SAI: Fixes crashes when using SMART_EVENT_[IC/OOC]_LOS

It should also fix some wrong behaviors in scripts that use these events.
This commit is contained in:
Subv
2012-10-07 19:31:13 -05:00
parent 42d606a81b
commit 4dc28e9420

View File

@@ -2821,9 +2821,10 @@ void SmartScript::InitTimer(SmartScriptHolder& e)
case SMART_EVENT_UPDATE:
case SMART_EVENT_UPDATE_IC:
case SMART_EVENT_UPDATE_OOC:
case SMART_EVENT_OOC_LOS:
case SMART_EVENT_IC_LOS:
RecalcTimer(e, e.event.minMaxRepeat.min, e.event.minMaxRepeat.max);
case SMART_EVENT_IC_LOS:
case SMART_EVENT_OOC_LOS:
RecalcTimer(e, e.event.los.cooldownMin, e.event.los.cooldownMax);
break;
default:
e.active = true;