From 092fd8df2894b754da70bc6ba25ef5e4e90e03e9 Mon Sep 17 00:00:00 2001 From: Ryo Date: Thu, 22 Feb 2024 22:15:26 +0800 Subject: [PATCH] Fix roleIds IndexOutOfRangeException --- GameServer/Models/FormationModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameServer/Models/FormationModel.cs b/GameServer/Models/FormationModel.cs index 7689a53..83de02c 100644 --- a/GameServer/Models/FormationModel.cs +++ b/GameServer/Models/FormationModel.cs @@ -10,7 +10,7 @@ internal class FormationModel public void Set(int[] roleIds) { - for (int i = 0; i < RoleIds.Length; i++) + for (int i = 0; i < roleIds.Length; i++) { RoleIds[i] = roleIds[i]; }