summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-24 13:36:50 -0300
committershennetsind <ind@henn.et>2013-06-24 13:36:50 -0300
commitae69e16adc2030017cd8b409737e522162589790 (patch)
treefec8b5eb55d56447c938a638110e8eddcf493ae1 /src
parent37610e6568c5f51952fce779de96128eed63b995 (diff)
downloadhercules-ae69e16adc2030017cd8b409737e522162589790.tar.gz
hercules-ae69e16adc2030017cd8b409737e522162589790.tar.bz2
hercules-ae69e16adc2030017cd8b409737e522162589790.tar.xz
hercules-ae69e16adc2030017cd8b409737e522162589790.zip
Fixed Bug #7419
Special Thanks to Axiom http://hercules.ws/board/tracker/issue-7419-pcc-error/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1a5822f81..0d1a99175 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4704,7 +4704,7 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
nullpo_ret(sd);
- if( !mapindex || !mapindex_id2name(mapindex) ) {
+ if( !mapindex || !mapindex_id2name(mapindex) || ( m = iMap->mapindex2mapid(mapindex) ) == -1 ) {
ShowDebug("pc_setpos: Passed mapindex(%d) is invalid!\n", mapindex);
return 1;
}
@@ -4713,7 +4713,6 @@ int pc_setpos(struct map_session_data* sd, unsigned short mapindex, int x, int y
pc->setstand(sd);
pc->setrestartvalue(sd,1);
}
- m = iMap->mapindex2mapid(mapindex);
if( map[m].flag.src4instance ) {
struct party_data *p;