Scripts: Fixed compile

This commit is contained in:
Shauren
2011-05-12 12:08:47 +02:00
parent 28c002f77e
commit 82b5f9c629
2 changed files with 12 additions and 10 deletions

View File

@@ -244,11 +244,13 @@ const Position PosWeavers[MAX_WEAVERS] =
};
// predicate function to select not charmed target
struct NotCharmedTargetSelector : public std::unary_function<Unit *, bool> {
struct NotCharmedTargetSelector : public std::unary_function<Unit*, bool>
{
NotCharmedTargetSelector() {}
bool operator() (const Unit *pTarget) {
return (!pTarget->isCharmed());
bool operator()(Unit const* target) const
{
return !target->isCharmed();
}
};