diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-05-08 05:34:35 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-05-08 05:34:35 +0000 |
commit | 0f130e615463dfa6150d097c72a4612868e180f5 (patch) | |
tree | 1af4bfc2105efa6dac73cc112155aaf5f9a65f8f /src/map/script.c | |
parent | 77d43dcefbbfbcbaf2b1cd1f5da2017673c1b5dc (diff) | |
download | hercules-0f130e615463dfa6150d097c72a4612868e180f5.tar.gz hercules-0f130e615463dfa6150d097c72a4612868e180f5.tar.bz2 hercules-0f130e615463dfa6150d097c72a4612868e180f5.tar.xz hercules-0f130e615463dfa6150d097c72a4612868e180f5.zip |
* Updated/revised description of instance-related script commands (bugreport:4880).
- Fixed 'instance_create' would return -4 (party already instancing) when the requested party was not found.
- 'instance_create' return value -2 now means 'party not found' rather than 'missing parameter'.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14809 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 4f565b9ed..0b6732f08 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14360,11 +14360,11 @@ BUILDIN_FUNC(instance_create) } else if( res < 0 ) { - char *err; + const char *err; switch(res) { case -3: err = "No free instances"; break; - case -2: err = "Missing parameter"; break; + case -2: err = "Invalid party ID"; break; case -1: err = "Invalid type"; break; default: err = "Unknown"; break; } |