summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-31 00:42:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-31 00:42:56 +0000
commit01125519eed1ab1d2293e96e859e6711365b3d12 (patch)
treea576886c0d27b08c6e6445bbe942b2d12e435fd7 /src/map/script.c
parent55d99ca77ba52ce480be9e2ec6ff9c35ddd575ed (diff)
downloadhercules-01125519eed1ab1d2293e96e859e6711365b3d12.tar.gz
hercules-01125519eed1ab1d2293e96e859e6711365b3d12.tar.bz2
hercules-01125519eed1ab1d2293e96e859e6711365b3d12.tar.xz
hercules-01125519eed1ab1d2293e96e859e6711365b3d12.zip
- 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
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
1 files changed, 5 insertions, 2 deletions
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;
}