Core/Misc: fixed warnings and building connection patcher with boost versions below 1.61

This commit is contained in:
Ovahlord committed 2019-11-06 00:51:04 +01:00
1 parent abd3d58d57
commit 15f09fb82b
104 files changed
+297 -471

No files matched your search

@@ -1413,12 +1413,10 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
bool repeat = e.action.wpStart.repeat != 0;
// ensure that SMART_ESCORT_TARGETS contains at least one player reference
bool stored = false;
for (WorldObject* target : targets)
{
if (IsPlayer(target))
{
stored = true;
StoreTargetList(targets, SMART_ESCORT_TARGETS);
break;
}