remove some memcpy/memset calls in favor of default constructors

This commit is contained in:
Martin Michelsen
2022-05-08 00:28:06 -07:00
parent 1e3dd6a274
commit 855d3616da
7 changed files with 30 additions and 20 deletions
-3
View File
@@ -890,9 +890,6 @@ void send_join_game_t(shared_ptr<Client> c, shared_ptr<Lobby> l) {
l->clients[x]->game_data.player()->disp);
}
player_count++;
} else {
// inventory doesn't have a default contructor, so clear it manually
memset(&cmd.players_ep3[x].inventory, 0, sizeof(cmd.players_ep3[x].inventory));
}
}