diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-03 10:05:00 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-02-04 12:22:33 -0800 |
commit | 9544985ccbb20d7f8377c63a4e59d1ff97b844ac (patch) | |
tree | 764351426278353e63f3ca7e3c25c6cf01427311 /src/map/map.hpp | |
parent | c39691d2f3852e81c0cfd49331e01a0e263591e2 (diff) | |
download | tmwa-9544985ccbb20d7f8377c63a4e59d1ff97b844ac.tar.gz tmwa-9544985ccbb20d7f8377c63a4e59d1ff97b844ac.tar.bz2 tmwa-9544985ccbb20d7f8377c63a4e59d1ff97b844ac.tar.xz tmwa-9544985ccbb20d7f8377c63a4e59d1ff97b844ac.zip |
Convert fd to Session* where meaningful
Diffstat (limited to 'src/map/map.hpp')
-rw-r--r-- | src/map/map.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.hpp b/src/map/map.hpp index 0038e67..897c619 100644 --- a/src/map/map.hpp +++ b/src/map/map.hpp @@ -174,7 +174,7 @@ struct map_session_data : block_list, SessionData int weight, max_weight; int cart_weight, cart_max_weight, cart_num, cart_max_num; MapName mapname_; - int fd; // use this, you idiots! + Session *sess; // use this, you idiots! short to_x, to_y; interval_t speed; Opt1 opt1; @@ -310,7 +310,7 @@ struct map_session_data : block_list, SessionData IP4Address get_ip() { - return session[fd]->client_ip; + return sess->client_ip; } }; |