Skip to content

Anticheat .c_str() fix build debian 11 #132

@DykeRz

Description

@DykeRz

**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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions