From c1544cbaf22d6c37d7886f08e47a8cba8e3a57b2 Mon Sep 17 00:00:00 2001 From: ketmar Date: Mon, 28 May 2012 08:17:23 +0300 Subject: [PATCH] wizard scroll wishing: esc now escapes %-) --- src/game/commands/GetScroll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/commands/GetScroll.cpp b/src/game/commands/GetScroll.cpp index e335d7b..903f33e 100644 --- a/src/game/commands/GetScroll.cpp +++ b/src/game/commands/GetScroll.cpp @@ -17,7 +17,7 @@ COMMAND(GetScroll) { if (sel < 0) break; festring sname; sLong amount = game::NumberQuestion(CONST_S("How many scrolls do you want?"), WHITE, true); - if (amount < 1) amount = 1; + if (amount < 0) break; for (sLong f = amount; f > 0; --f) { switch (sel) { case 0: sname = "Wishing"; Char->GetStack()->AddItem(scrollofwishing::Spawn()); break; -- 2.11.4.GIT