From 98206a6f44d4c3add9fe62a24929a2cfaddc5d1e Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Fri, 21 Feb 2025 14:31:56 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/Gm.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/game/Gm.go b/src/server/game/Gm.go index 8b52f10c..3bdcd637 100644 --- a/src/server/game/Gm.go +++ b/src/server/game/Gm.go @@ -23,8 +23,7 @@ import ( "google.golang.org/protobuf/proto" ) -func ReqGmCommand(args []interface{}) error { - _, player, buf := ParseArgs(args) +func ReqGmCommand(player *Player, buf []byte) error { detail := &msg.ReqGmCommand{} proto.Unmarshal(buf, detail) return ReqGmCommand_(player, detail.Command)