Fix typo
This commit is contained in:
parent
e8b50bf352
commit
195d76a92c
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ const DummyCmdList = [_]struct { CmdID, CmdID }{
|
|||
.{ CmdID.CmdGetMainMissionCustomValueCsReq, CmdID.CmdGetMainMissionCustomValueScRsp },
|
||||
};
|
||||
|
||||
const SupressLogList = [_]CmdID{CmdID.CmdSceneEntityMoveCsReq};
|
||||
const SuppressLogList = [_]CmdID{CmdID.CmdSceneEntityMoveCsReq};
|
||||
|
||||
pub fn handle(session: *Session, packet: *const Packet) !void {
|
||||
var arena = ArenaAllocator.init(session.allocator);
|
||||
|
@ -81,7 +81,7 @@ pub fn handle(session: *Session, packet: *const Packet) !void {
|
|||
inline for (HandlerList) |handler| {
|
||||
if (handler[0] == cmd_id) {
|
||||
try handler[1](session, packet, arena.allocator());
|
||||
if (!std.mem.containsAtLeast(CmdID, &SupressLogList, 1, &[_]CmdID{cmd_id})) {
|
||||
if (!std.mem.containsAtLeast(CmdID, &SuppressLogList, 1, &[_]CmdID{cmd_id})) {
|
||||
log.debug("packet {} was handled", .{cmd_id});
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue