From f5bfd4a3c683201b2e75ca3f02dc1ff5a8c17936 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 12 Nov 2023 20:16:29 -0800 Subject: [PATCH] fix signed/unsigned comparison --- src/ReceiveCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index a6096619..5196cd85 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -3301,7 +3301,7 @@ static void on_DF_BB(shared_ptr c, uint16_t command, uint32_t, string& d if (!l->quest) { throw runtime_error("challenge mode character template config command sent in non-challenge game"); } - if (l->quest->challenge_template_index != cmd.template_index) { + if (l->quest->challenge_template_index != static_cast(cmd.template_index)) { throw runtime_error("challenge template index in quest metadata does not match index sent by client"); } // Do nothing: we've already created the player overlay by the time this