diff --git a/similar/main/newdemo.cpp b/similar/main/newdemo.cpp index 91bb4322a..91d20d7aa 100644 --- a/similar/main/newdemo.cpp +++ b/similar/main/newdemo.cpp @@ -1724,8 +1724,8 @@ static int newdemo_read_demo_start(enum purpose_type purpose) if (purpose == PURPOSE_REWRITE) nd_write_int(i.score); } else { - nd_read_short(reinterpret_cast(&i.net_killed_total)); - nd_read_short(reinterpret_cast(&i.net_kills_total)); + nd_read_short(&i.net_killed_total); + nd_read_short(&i.net_kills_total); if (purpose == PURPOSE_REWRITE) { nd_write_short(i.net_killed_total); @@ -1829,7 +1829,7 @@ static int newdemo_read_demo_start(enum purpose_type purpose) get_local_player_invulnerable_time() = GameTime64 - (INVULNERABLE_TIME_MAX / 2); nd_read_byte(reinterpret_cast(&Primary_weapon)); - nd_read_byte(reinterpret_cast(&Secondary_weapon)); + nd_read_byte(&Secondary_weapon); if (purpose == PURPOSE_REWRITE) { nd_write_byte(Primary_weapon);