diff options
author | markzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2013-01-05 04:45:53 +0000 |
---|---|---|
committer | markzd <markzd@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2013-01-05 04:45:53 +0000 |
commit | 59029a6c7a0365521aa80519081fdfc7d958cca0 (patch) | |
tree | e096f8d20d0bbb2bcae2fa93de15d5cf4da8196a /src/map/script.c | |
parent | 39b04a578b2a74f9e48b0eb2583c249f98c9404d (diff) | |
download | hercules-59029a6c7a0365521aa80519081fdfc7d958cca0.tar.gz hercules-59029a6c7a0365521aa80519081fdfc7d958cca0.tar.bz2 hercules-59029a6c7a0365521aa80519081fdfc7d958cca0.tar.xz hercules-59029a6c7a0365521aa80519081fdfc7d958cca0.zip |
* Follow up r17065
1. Removed some unnecessary checks.(bugreport:7078)
2. Fixed some index's which would access an invalid array position, crashing the server.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17077 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 3409d44db..a918bc853 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -16693,7 +16693,7 @@ BUILDIN_FUNC(pushpc) dir = script_getnum(st,2); cells = script_getnum(st,3); - if(dir<0 || dir>7) + if(dir>7) { ShowWarning("buildin_pushpc: Invalid direction %d specified.\n", dir); script_reportsrc(st); |