diff options
author | Matheus Macabu <mkbu95@gmail.com> | 2013-05-18 18:17:38 -0300 |
---|---|---|
committer | Matheus Macabu <mkbu95@gmail.com> | 2013-05-18 18:17:38 -0300 |
commit | fdf1d34fdc53bb28625669ead2b812f6dcb47337 (patch) | |
tree | abf6739a98a8583fca8a413ddec15e4da721a9b9 /src/char | |
parent | 3b4b0876efdaa78bb55a6ab287fdbb0d50ead2e6 (diff) | |
download | hercules-fdf1d34fdc53bb28625669ead2b812f6dcb47337.tar.gz hercules-fdf1d34fdc53bb28625669ead2b812f6dcb47337.tar.bz2 hercules-fdf1d34fdc53bb28625669ead2b812f6dcb47337.tar.xz hercules-fdf1d34fdc53bb28625669ead2b812f6dcb47337.zip |
Some type conversion warnings fixed. If this breaks anything create a bug report ASAP and I will revert it gladly.
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index 00fc633df..f4212a076 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1171,13 +1171,13 @@ int mmo_char_fromsql(int char_id, struct mmo_charstatus* p, bool load_everything p->save_point.map = mapindex_name2id(save_map); if( p->last_point.map == 0 ) { - p->last_point.map = strdb_iget(mapindex_db, MAP_DEFAULT); + p->last_point.map = (unsigned short)strdb_iget(mapindex_db, MAP_DEFAULT); p->last_point.x = MAP_DEFAULT_X; p->last_point.y = MAP_DEFAULT_Y; } if( p->save_point.map == 0 ) { - p->save_point.map = strdb_iget(mapindex_db, MAP_DEFAULT); + p->save_point.map = (unsigned short)strdb_iget(mapindex_db, MAP_DEFAULT); p->save_point.x = MAP_DEFAULT_X; p->save_point.y = MAP_DEFAULT_Y; } |