diff --git a/Horde3D/Source/Horde3DEngine/egAnimation.cpp b/Horde3D/Source/Horde3DEngine/egAnimation.cpp index f0695e2..45c3b99 100644 --- a/Horde3D/Source/Horde3DEngine/egAnimation.cpp +++ b/Horde3D/Source/Horde3DEngine/egAnimation.cpp @@ -14,6 +14,7 @@ #include "egModules.h" #include "egCom.h" #include +#include #include "utDebug.h" @@ -144,11 +145,11 @@ bool AnimationResource::load( const char *data, int size ) // Sort entities by name id struct CompFunc { - bool operator()( const AnimResEntity &a, const AnimResEntity &b ) const + static bool f( const AnimResEntity &a, const AnimResEntity &b ) { return a.nameId < b.nameId; } }; - std::sort( _entities.begin(), _entities.end(), CompFunc() ); + std::sort( _entities.begin(), _entities.end(), CompFunc::f ); return true; }