Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Binder net packet reader io #1464

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Explicit u32 cast for size type to maintain WeaponWGrenade compatibil…
…ity in 32 and 64 bit.
Neloreck committed Oct 17, 2023
commit b43f5a6c9852db56be1ab9aa368dfb4703e1de1c
4 changes: 2 additions & 2 deletions src/xrGame/WeaponMagazinedWGrenade.cpp
Original file line number Diff line number Diff line change
@@ -779,7 +779,7 @@ void CWeaponMagazinedWGrenade::save(NET_Packet& output_packet)
{
inherited::save(output_packet);
save_data(m_bGrenadeMode, output_packet);
save_data(m_magazine2.size(), output_packet);
save_data(static_cast<u32>(m_magazine2.size()), output_packet);
}

void CWeaponMagazinedWGrenade::load(IReader& input_packet)
@@ -790,7 +790,7 @@ void CWeaponMagazinedWGrenade::load(IReader& input_packet)
if (b != m_bGrenadeMode)
SwitchMode();

size_t sz = 0;
u32 sz = 0;
load_data(sz, input_packet);

CCartridge l_cartridge;