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

[SOLVED] Help me please Cross faction

Status
Not open for further replies.

leonardofan

Enthusiast
Diff: http://pastebin.com/4LFzTPe4

Erro:

In file included from /home/tc/src/server/database/Database/DatabaseEnv.h:24:0,
from /home/tc/src/server/game/Instances/InstanceSaveMgr.h:28,
from /home/tc/src/server/game/Maps/MapInstanced.h:23,
from /home/tc/src/server/game/Maps/MapManager.h:24,
from PrecompiledHeaders/gamePCH.h:4:
/home/tc/src/server/game/Battlegrounds/Battleground.cpp: In member function 'void Battleground::RewardReputationToTeam(uint32, uint32, uint32, uint32)':
/home/tc/src/common/Logging/Log.h:182:43: error: cannot pass objects of non-trivially-copyable type 'const class ObjectGuid' through '...'
check_args(__VA_ARGS__); \
^
/home/tc/src/common/Logging/Log.h:211:5: note: in expansion of macro 'TC_LOG_MESSAGE_BODY'
TC_LOG_MESSAGE_BODY(filterType__, LOG_LEVEL_ERROR, __VA_ARGS__)
^
/home/tc/src/server/game/Battlegrounds/Battleground.cpp:681:24: note: in expansion of macro 'TC_LOG_ERROR'
TC_LOG_ERROR("bg.battleground", "BattleGround:RewardReputationToTeam: %u not found!", itr->first);
^
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/server/game/CMakeFiles/game.dir/Battlegrounds/Battleground.cpp.o] Error 1
make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2
make: *** [all] Error 2
root@wowpandora:/home/tc/build#
 
Last edited:

Tommy

Founder
As far as I can tell:

Inside of this function:

Code:
void Battleground::RewardReputationToTeam(uint32 a_faction_id, uint32 h_faction_id, uint32 Reputation, uint32 TeamID)

Find:

Code:
TC_LOG_ERROR("bg.battleground", "BattleGround:RewardReputationToTeam: %u not found!", itr->first);

And change it to:

Code:
TC_LOG_ERROR("bg.battleground", "BattleGround:RewardReputationToTeam: %u not found!", itr->first.GetCounter());

TC team changed how Guid is called, hence the error.

Also, next time use pastebin or code bbcode instead of the spoiler bbcode.
 
Status
Not open for further replies.
Top