summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-26 22:22:04 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-12-26 22:22:04 +0000
commitb9e21d0eb2447cd04961c0ad6ef7e9984b39c1f2 (patch)
treecdc15d52608fc03c0eeb249cbd0b4f9ab8ef77d1
parent24a0570a27c0be7b6941ed8073cb361f8ddd5de9 (diff)
downloadhercules-b9e21d0eb2447cd04961c0ad6ef7e9984b39c1f2.tar.gz
hercules-b9e21d0eb2447cd04961c0ad6ef7e9984b39c1f2.tar.bz2
hercules-b9e21d0eb2447cd04961c0ad6ef7e9984b39c1f2.tar.xz
hercules-b9e21d0eb2447cd04961c0ad6ef7e9984b39c1f2.zip
- Added missing script_pushint() in 'checkweight' that were forgotten in r14629.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14631 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 773f8d6c4..59a9b5448 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5411,6 +5411,7 @@ BUILDIN_FUNC(checkweight)
if( id == NULL )
{
ShowError("buildin_checkweight: Invalid item '%s'.\n", script_getstr(st,2)); // returns string, regardless of what it was
+ script_pushint(st,0);
return 1;
}
@@ -5420,6 +5421,7 @@ BUILDIN_FUNC(checkweight)
if( amount < 1 )
{
ShowError("buildin_checkweight: Invalid amount '%d'.\n", amount);
+ script_pushint(st,0);
return 1;
}
@@ -5461,6 +5463,7 @@ BUILDIN_FUNC(checkweight)
return 0;
}
+ script_pushint(st,1);
return 0;
}