summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/char/char.c1
-rw-r--r--src/char_sql/char.c1
-rw-r--r--src/map/chrif.c10
3 files changed, 7 insertions, 5 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 6b25561a1..78ad37146 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -2744,6 +2744,7 @@ int parse_frommap(int fd) {
char_data->last_point.map = RFIFOW(fd,18);
char_data->last_point.x = RFIFOW(fd,20);
char_data->last_point.y = RFIFOW(fd,22);
+ char_data->sex = RFIFOB(fd,30); // Buuyo^
WFIFOW(map_fd,0) = 0x2afd;
WFIFOW(map_fd,2) = 20 + sizeof(struct mmo_charstatus);
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index 72280cf87..66846fa7d 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -2620,6 +2620,7 @@ int parse_frommap(int fd) {
char_data->last_point.map = RFIFOW(fd,18);
char_data->last_point.x = RFIFOW(fd,20);
char_data->last_point.y = RFIFOW(fd,22);
+ char_data->sex = RFIFOB(fd,30); // Buuyo^
WFIFOW(map_fd,0) = 0x2afd;
WFIFOW(map_fd,2) = 20 + sizeof(struct mmo_charstatus);
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 17e47b4f5..7f4c0be92 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -324,11 +324,11 @@ int chrif_changemapserver(struct map_session_data *sd, short map, int x, int y,
chrif_check(-1);
s_ip = 0;
- for(i = 0; i < fd_max; i++)
- if (session[i] && session[i]->session_data == sd) {
- s_ip = session[i]->client_addr.sin_addr.s_addr;
- break;
- }
+ //for(i = 0; i < fd_max; i++)
+ // if (session[i] && session[i]->session_data == sd) {
+ s_ip = session[sd->fd]->client_addr.sin_addr.s_addr; // For what you're looping it? [Lance]
+ // break;
+ // }
WFIFOHEAD(char_fd, 35);
WFIFOW(char_fd, 0) = 0x2b05;