MantisBT - VCMI
View Issue Details
0003144VCMIMultiplayerpublic2020-10-03 05:122020-10-03 05:12
jambolo 
 
normalminorhave not tried
newopen 
 
 
0003144: Typo in CServerHandler.cpp at line 421 in CServerHandler::sendMessage()
The following code is probably wrong:

    void CServerHandler::sendMessage(const std::string & txt) const
    {
        ...
        else if(command == "!forcep")
        {
            ...
            if(connectedId.length(), playerColorId.length()) <---- HERE *******
            {
                ...
            }
        }
        ...
    }

Perhaps it should be:

    if(connectedId.length() < playerColorId.length())
No tags attached.
Issue History
2020-10-03 05:12jamboloNew Issue

There are no notes attached to this issue.