Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Game crashes after spas shot. #44

@L30N3

Description

@L30N3

Greetings.

Like your fabulous plugin, but I have found one trouble.
My game crashes when I do spas or sawn-off shotgun shot (Exception 0xC0000005 at 0x55250649).
I found a reason of this problem in Client/Network.cpp at this code:

unsigned int SendRPC(unsigned short usRPCId, RakNet::BitStream* pBitStream, PacketPriority priority, PacketReliability reliability, char cOrderingChannel)
    {
        if (!IsConnected())
            return 0;

        CLog::Write("Sent packet: %i, size: %i byte(s)", usRPCId, pBitStream->GetNumberOfBytesUsed());
        CLog::bytesSent += pBitStream->GetNumberOfBytesUsed();

        return pRakClient->SendRPC(usRPCId, *pRakClient->GetRemoteAddress(), pBitStream, priority, reliability, cOrderingChannel);
    }

If I will comment this part of code, the crash will gone:

//CLog::Write("Sent packet: %i, size: %i byte(s)", usRPCId, pBitStream->GetNumberOfBytesUsed());
        //CLog::bytesSent += pBitStream->GetNumberOfBytesUsed();

I do not know a reason of the problem, because I am begginer at coding, so I think you can fix this problem. Sorry for my bad English.

Regards,
L30N3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions