• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.X+ addItem protocalgame crash

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
1,067
Solutions
5
Reaction score
63
I assume crash happened because of this function, particulary this part msg.addItem(item); but not exactly sure, and not sure how to fix it or h ow to replicate it
C++:
void ProtocolGame::sendAddTileItem(const Position& pos, uint32_t stackpos, const Item* item)
{
    if (!canSee(pos)) {
        return;
    }

    NetworkMessage msg = NetworkMessage(getConnection()->getHeader);
    msg.addByte(0x6A);
    msg.addPosition(pos);
    msg.addByte(stackpos);
    msg.addItem(item);
    writeToOutputBuffer(msg);
    
    checkPredictiveWalking(pos);
}

This is the crash log i got - ---------------------------------------------------Signal caught: SIGSEGVwar - Pastebin.com (https://pastebin.com/uwWLV7cP)
 
Back
Top