From 67e1583f9fec7ac95a954634f6b7600ebe428df0 Mon Sep 17 00:00:00 2001 From: Tuan Anh Nguyen Date: Thu, 25 Apr 2019 20:25:59 +0700 Subject: [PATCH] Fix loop issue on Ice Cream Maker NPC (#4127) * Fixed infinity loop issue if user input any number except 0. --- npc/merchants/icecream.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/npc/merchants/icecream.txt b/npc/merchants/icecream.txt index b094049fd8..4411714996 100644 --- a/npc/merchants/icecream.txt +++ b/npc/merchants/icecream.txt @@ -36,7 +36,7 @@ mes "but we have a limited amount,"; mes "so you can only purchase 5 at a time!!"; next; - while(1) { + while(true) { input .@input; if(.@input < 1) { mes "[Ice Cream Maker]"; @@ -55,7 +55,9 @@ mes "If you might haveto make a lot of trips"; mes "to the bathroom tonight."; next; + continue; } + break; } if(Zeny<.@input*100) { mes "[Ice Cream Maker]";