summaryrefslogtreecommitdiff
path: root/src/map/instance.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-06-28 00:27:48 +0200
committerGitHub <noreply@github.com>2020-06-28 00:27:48 +0200
commitf6f8ec5e247d3cd52598f2d026524d1bbc791120 (patch)
treebd6c43bdfbe4758104e74b98f8a97691a078c028 /src/map/instance.c
parent9b89425550094f51d633e5b5d6e86af65bffbf39 (diff)
parenta4492b60cf9012e990233ff4689cbf1ef67274ba (diff)
downloadhercules-f6f8ec5e247d3cd52598f2d026524d1bbc791120.tar.gz
hercules-f6f8ec5e247d3cd52598f2d026524d1bbc791120.tar.bz2
hercules-f6f8ec5e247d3cd52598f2d026524d1bbc791120.tar.xz
hercules-f6f8ec5e247d3cd52598f2d026524d1bbc791120.zip
Merge pull request #2732 from Kenpachi2k13/instance_create_doc
Update instancing window display and documentation of instance_create() script command
Diffstat (limited to 'src/map/instance.c')
-rw-r--r--src/map/instance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/instance.c b/src/map/instance.c
index 1104b7e88..d2c0a229c 100644
--- a/src/map/instance.c
+++ b/src/map/instance.c
@@ -68,7 +68,7 @@ static bool instance_is_valid(int instance_id)
/*--------------------------------------
* name : instance name
* Return value could be
- * -4 = already exists | -3 = no free instances | -2 = owner not found | -1 = invalid type
+ * -4 = already exists | -2 = owner not found | -1 = invalid type
* On success return instance_id
*--------------------------------------*/
static int instance_create(int owner_id, const char *name, enum instance_owner_type type)
@@ -734,7 +734,7 @@ static void instance_force_destroy(struct map_session_data *sd)
switch (instance->list[i].owner_type) {
case IOT_CHAR:
{
- if (instance->list[i].owner_id != sd->status.char_id)
+ if (instance->list[i].owner_id != sd->status.account_id)
continue;
break;
}