bug修复

This commit is contained in:
hahwu 2025-02-21 14:31:56 +08:00
parent b43aa1c699
commit 98206a6f44

View File

@ -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)