From 57540caab6f98aad14465ff475c4502380aa3cf9 Mon Sep 17 00:00:00 2001 From: cuu Date: Wed, 9 Jan 2019 19:02:19 +0800 Subject: [PATCH] gateway bug fix --- Menu/GameShell/10_Settings/GateWay/gateway_page.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Menu/GameShell/10_Settings/GateWay/gateway_page.go b/Menu/GameShell/10_Settings/GateWay/gateway_page.go index 72c923d..66d453b 100644 --- a/Menu/GameShell/10_Settings/GateWay/gateway_page.go +++ b/Menu/GameShell/10_Settings/GateWay/gateway_page.go @@ -277,8 +277,10 @@ func (self *GateWayPage) ApplyGateWay( gateway string ) bool { tmp,err := strconv.Atoi(parts[3]) if err == nil { if tmp == 0 { - tmp = tmp +1 - }else if tmp > 0 { + tmp = tmp + 1 + }else if tmp == 1 { + tmp = tmp + 1 + }else if tmp > 1 { tmp = tmp -1 } parts[3] = strconv.Itoa(tmp)