Use size_t for multi_message_index

As an index, it can never be negative.
This commit is contained in:
Kp 2022-11-08 02:55:08 +00:00
parent e2c61f6aee
commit 98cb7bf923

View file

@ -123,7 +123,7 @@ static void multi_send_drop_flag(vmobjptridx_t objnum,int seed);
namespace dcx {
namespace {
static int imulti_new_game; // to prep stuff for level only when starting new game
static int multi_message_index;
static std::size_t multi_message_index;
static per_player_array<std::array<objnum_t, MAX_OBJECTS>> remote_to_local; // Remote object number for each local object
static std::array<uint16_t, MAX_OBJECTS> local_to_remote;
static per_player_array<unsigned> sorted_kills;