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
This is the crash log i got - ---------------------------------------------------Signal caught: SIGSEGVwar - Pastebin.com (https://pastebin.com/uwWLV7cP)
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)