From 7bb63324bd26d8b5a05083653b44f1ffaea78ca7 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 16 Jul 2016 16:52:04 +0000 Subject: [PATCH] Remove useless cast in newdemo.cpp --- similar/main/newdemo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);