-
Notifications
You must be signed in to change notification settings - Fork 58
Description
**Description
**Current behavio
Expected behaviour:
Passive anticheat fix linux, need to add some .c_str() like this to:
sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str.c_str(), player->GetName().c_str(), player->GetName().c_str());
Steps to reproduce the problem:
Apply anticheat to last TC
Try to compile in deb11
You will get errors:
/home/server/TC/src/server/game/Anticheat/AnticheatMgr.cpp:315:63: error: cannot pass object of non-trivial type 'std::string' (aka 'basic_string') through variadic method; call will abort at runtime [-Wnon-pod-varargs]
sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName(), player->GetName());sWorld->SendGMText(LANG_ANTICHEAT_COUNTERMEASURE, str, player->GetName(), player->GetName());
Branch(es):
3.3.5
TC rev. hash/commit:
3194345
(Deb64, Debug, Static)
TDB version:
TDB 335.24011
Operating system: debian 11