diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-01-23 01:41:33 +0100 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-01-23 01:43:08 +0100 |
commit | 7076320f98a9044e73a873c6f5bd7aa51c795c0c (patch) | |
tree | f9c725822648ead3b683ad339ee44f2334369f02 /src/map/clif.cpp | |
parent | 5717159ff132c306f7adf57d6c2640117aeb56be (diff) | |
download | tmwa-7076320f98a9044e73a873c6f5bd7aa51c795c0c.tar.gz tmwa-7076320f98a9044e73a873c6f5bd7aa51c795c0c.tar.bz2 tmwa-7076320f98a9044e73a873c6f5bd7aa51c795c0c.tar.xz tmwa-7076320f98a9044e73a873c6f5bd7aa51c795c0c.zip |
apply bjorn's suggestions
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r-- | src/map/clif.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp index c270d98..1b77be6 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -4020,11 +4020,10 @@ RecvResult clif_parse_GetCharNameRequest(Session *s, dumb_ptr<map_session_data> dumb_ptr<mob_data> md = bl->is_mob(); nullpo_retr(rv, md); - const mob_db_& mob_info = get_mob_db(md->mob_class); - if (md->name != MobName() && md->name != mob_info.name && md->name.size() >= 4) + if (md->name.size() >= 4) fixed_95.char_name = stringish<CharName>(md->name); else - fixed_95.char_name = stringish<CharName>(mob_info.name); + fixed_95.char_name = stringish<CharName>(get_mob_db(md->mob_class).name); send_fpacket<0x0095, 30>(s, fixed_95); } break; |