From 371d056df80b6f83484534f64883c3d020c4112d Mon Sep 17 00:00:00 2001 From: Emistry Haoyan Date: Sun, 16 Jun 2019 18:44:45 +0800 Subject: Sanitize handling of the input() values. - avoid potential hacks for old scripts that use `input()` script commands. Signed-off-by: Haru --- npc/other/gm_npcs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc/other/gm_npcs.txt') diff --git a/npc/other/gm_npcs.txt b/npc/other/gm_npcs.txt index d86535104..b4ee7028e 100644 --- a/npc/other/gm_npcs.txt +++ b/npc/other/gm_npcs.txt @@ -63,7 +63,7 @@ function script F_GM_NPC { if (.@error) return -2; } else - input .@input; + input(.@input, 0); if (.@input == 0) return -1; else -- cgit v1.2.3-70-g09d2