summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-08-14 14:03:53 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-08-14 14:03:53 +0000
commit174ade9a45988abf053cf45f30775fc6a76e706e (patch)
treea72ecf639a28e68b9a1affc2a9961cb80be191ed /src/map/pc.c
parente9f0392e73cdb07067bbd031aeb4bdeff131ae93 (diff)
downloadhercules-174ade9a45988abf053cf45f30775fc6a76e706e.tar.gz
hercules-174ade9a45988abf053cf45f30775fc6a76e706e.tar.bz2
hercules-174ade9a45988abf053cf45f30775fc6a76e706e.tar.xz
hercules-174ade9a45988abf053cf45f30775fc6a76e706e.zip
- Fixes and optimization to instancing. Thanks to Saithis
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14006 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 2ded5e38b..17a8917cd 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3890,7 +3890,7 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
if( map[m].flag.src4instance && sd->status.party_id && (p = party_search(sd->status.party_id)) != NULL && p->instance_id )
{
// Request the mapid of this src map into the instance of the party
- int im = instance_map2imap(m, sd->status.party_id, 0);
+ int im = instance_map2imap(m, p->instance_id);
if( im < 0 )
; // Player will enter the src map for instances
else