mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 23:44:52 +01:00
fix scenario responses
This commit is contained in:
@@ -794,7 +794,7 @@ func handleMsgMhfInfoScenarioCounter(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
scenarioData.Close()
|
scenarioData.Close()
|
||||||
s.logger.Error("Failed to get scenario counter info from db", zap.Error(err))
|
s.logger.Error("Failed to get scenario counter info from db", zap.Error(err))
|
||||||
doAckBufSucceed(s, pkt.AckHandle, make([]byte, 4))
|
doAckBufSucceed(s, pkt.AckHandle, make([]byte, 1))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
for scenarioData.Next() {
|
for scenarioData.Next() {
|
||||||
@@ -802,6 +802,7 @@ func handleMsgMhfInfoScenarioCounter(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
scenarios = append(scenarios, scenario)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trim excess scenarios
|
// Trim excess scenarios
|
||||||
|
|||||||
Reference in New Issue
Block a user