• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Arena teams 2v2, 3v3 and 5v5 stats viewer

Xero

Enthusiast
Anybody mind giving me a hand with the following error?

Code:
from PrecompiledHeaders/ScriptPCH.h:8:
/usr/include/c++/4.4/bits/stl_algo.h: In function 'const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = ArenaTeam*, _Compare = bool (*)(ArenaTeam*&, ArenaTeam*&)]':
/usr/include/c++/4.4/bits/stl_algo.h:2301:   instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<ArenaTeam**, std::vector<ArenaTeam*, std::allocator<ArenaTeam*> > >, _Size = long int, _Compare = bool (*)(ArenaTeam*&, ArenaTeam*&)]'
/usr/include/c++/4.4/bits/stl_algo.h:5258:   instantiated from 'void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<ArenaTeam**, std::vector<ArenaTeam*, std::allocator<ArenaTeam*> > >, _Compare = bool (*)(ArenaTeam*&, ArenaTeam*&)]'
/home//TrinityCore/src/server/scripts/Custom/ArenaStats.cpp:235:   instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:124: error: invalid initialization of reference of type 'ArenaTeam*&' from expression of type 'ArenaTeam* const'
/usr/include/c++/4.4/bits/stl_algo.h:125: error: invalid initialization of reference of type 'ArenaTeam*&' from expression of type 'ArenaTeam* const'
/usr/include/c++/4.4/bits/stl_algo.h:127: error: invalid initialization of reference of type 'ArenaTeam*&' from expression of type 'ArenaTeam* const'
/usr/include/c++/4.4/bits/stl_algo.h:131: error: invalid initialization of reference of type 'ArenaTeam*&' from expression of type 'ArenaTeam* const'
/usr/include/c++/4.4/bits/stl_algo.h:133: error: invalid initialization of reference of type 'ArenaTeam*&' from expression of type 'ArenaTeam* const'

Not too sure how I'd go about fixing this.
 
Top