From 01125519eed1ab1d2293e96e859e6711365b3d12 Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 31 Oct 2007 00:42:56 +0000 Subject: - Fixed the pc_additem weight check breaking when your current weight is above your max. - Some minor cleanups. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11621 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index 28cb7ed7e..4d8c820cf 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5892,8 +5892,11 @@ BUILDIN_FUNC(countitem) nameid = conv_num(st,data); if (nameid < 500) { - if(battle_config.error_log) ShowError("wrong item ID : countitem(%i)\n", nameid); - script_reportsrc(st); + if(battle_config.error_log) + { + ShowError("wrong item ID : countitem(%i)\n", nameid); + script_reportsrc(st); + } script_pushint(st,0); return 1; } -- cgit v1.2.3-60-g2f50