summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnnieRuru <jeankofannie2@gmail.com>2019-02-26 17:51:04 +0800
committerAnnieRuru <jeankofannie2@gmail.com>2019-02-26 17:51:04 +0800
commit76a336eea15b0af70ebe4d3dd13b25f1f503e03c (patch)
treefa9cde2b060fde15950cd9b49a56a2bc01bdfc20 /src
parentd496d8963fb4c2eb9015a2911a88299e29644681 (diff)
downloadhercules-76a336eea15b0af70ebe4d3dd13b25f1f503e03c.tar.gz
hercules-76a336eea15b0af70ebe4d3dd13b25f1f503e03c.tar.bz2
hercules-76a336eea15b0af70ebe4d3dd13b25f1f503e03c.tar.xz
hercules-76a336eea15b0af70ebe4d3dd13b25f1f503e03c.zip
Add missing documentation for disable battleground respawn
- fix a minor bug that bg_create_team should return -1, as mentioned in doc/script_commands.txt
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 7578fcdcc..8096ec471 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -23687,7 +23687,7 @@ static BUILDIN(bg_create_team)
if( strcmp(map_name,"-") != 0 ) {
map_index = script->mapindexname2id(st,map_name);
if( map_index == 0 ) { // Invalid Map
- script_pushint(st,0);
+ script_pushint(st, -1);
return true;
}
}