summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1065bb788..782446c42 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3432,9 +3432,8 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
return 1;
}
- m=map_mapindex2mapid(mapindex);
-
- if( (sd->state.changemap = (sd->mapindex != mapindex)) )
+ sd->state.changemap = (sd->mapindex != mapindex);
+ if( sd->state.changemap )
{ //Misc map-changing settings
if (sd->sc.count)
{ //Cancel some map related stuff.
@@ -3463,6 +3462,7 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
sd->regen.state.gc = 0;
}
+ m=map_mapindex2mapid(mapindex);
if(m<0) {
uint32 ip;
uint16 port;