• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Error misleading indentation in Linux

Lopaskurwa

Active Member
Joined
Oct 6, 2017
Messages
870
Solutions
2
Reaction score
49
TFS 1.2

Compiles fine on windows but on linux it gives this error, any ideas?
6a71180aace2abb83eb20e348aa346e7.png

C++:
void ProtocolGame::sendMagicEffect(const Position& pos, uint16_t type)
{
    if (!canSee(pos)) {
        return;
    }

    if(otclientV8 && type == CONST_ME_RESPAWNORMALCLIENT) 
        type = CONST_ME_RESPAWN;
        

    NetworkMessage msg;
    msg.addByte(0x83);
    msg.addPosition(pos);
    msg.add<uint16_t>(type);
    writeToOutputBuffer(msg);
}
 
Compare it with the upper if. See the difference. Problem solved.
I see no difference at all, this code part
if(otclientV8 && type == CONST_ME_RESPAWNORMALCLIENT)
type = CONST_ME_RESPAWN;
suppose to be like this, you cant put any brackets on it or w/e
 
Back
Top