From 88a0b5ba60158abd083a8124ff63bcffb0f23919 Mon Sep 17 00:00:00 2001 From: obligaron Date: Sat, 25 Jun 2022 16:53:13 +0200 Subject: [PATCH] IsValidLevelForMultiplayer: Fix last set level is wrongly assumed as invalid --- Source/msg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/msg.cpp b/Source/msg.cpp index deeb5412b..e146247f4 100644 --- a/Source/msg.cpp +++ b/Source/msg.cpp @@ -2378,7 +2378,7 @@ uint8_t GetLevelForMultiplayer(const Player &player) bool IsValidLevelForMultiplayer(uint8_t level) { - return level < MAX_MULTIPLAYERLEVELS; + return level <= MAX_MULTIPLAYERLEVELS; } bool IsValidLevel(uint8_t level, bool isSetLevel)