Eluna fix TC errors from previous commits, fix merge and fix a crash on osx

This commit is contained in:
Rochet2
2014-12-15 23:24:51 +02:00
parent 525e108b83
commit 7671054425
7 changed files with 133 additions and 71 deletions

View File

@@ -713,7 +713,7 @@ namespace LuaCreature
std::advance(itr, position);
Eluna::Push(L, *itr);
}
break;
break;
case SELECT_TARGET_FARTHEST:
case SELECT_TARGET_BOTTOMAGGRO:
{
@@ -722,7 +722,7 @@ namespace LuaCreature
std::advance(ritr, position);
Eluna::Push(L, *ritr);
}
break;
break;
case SELECT_TARGET_RANDOM:
{
std::list<Unit*>::const_iterator itr = targetList.begin();
@@ -732,7 +732,7 @@ namespace LuaCreature
std::advance(itr, urand(0, targetList.size() - 1));
Eluna::Push(L, *itr);
}
break;
break;
default:
luaL_argerror(L, 2, "SelectAggroTarget expected");
break;