diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-17 19:02:46 +0530 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-03-19 22:27:31 +0100 |
commit | f5ff79f1aca3e3fd1621913e275b0fc50a2cf062 (patch) | |
tree | 68cf723c49f20a9dbc948feff7181a8cfa1f44c7 /src/map/script.c | |
parent | add2ea4f7944ccabfcaa67be9d9ee5a57fbfb97e (diff) | |
download | hercules-f5ff79f1aca3e3fd1621913e275b0fc50a2cf062.tar.gz hercules-f5ff79f1aca3e3fd1621913e275b0fc50a2cf062.tar.bz2 hercules-f5ff79f1aca3e3fd1621913e275b0fc50a2cf062.tar.xz hercules-f5ff79f1aca3e3fd1621913e275b0fc50a2cf062.zip |
status_get_name returns NULL instead of Unknown, Changed all functions to use clif_get_bl_name
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c index 67413669b..1128f400f 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -235,9 +235,9 @@ void script_reportsrc(struct script_state *st) { break; default: if( bl->m >= 0 ) - ShowDebug("Source (Non-NPC type %u): name %s at %s (%d,%d)\n", bl->type, status->get_name(bl), map->list[bl->m].name, bl->x, bl->y); + ShowDebug("Source (Non-NPC type %u): name %s at %s (%d,%d)\n", bl->type, clif->get_bl_name(bl), map->list[bl->m].name, bl->x, bl->y); else - ShowDebug("Source (Non-NPC type %u): name %s (invisible/not on a map)\n", bl->type, status->get_name(bl)); + ShowDebug("Source (Non-NPC type %u): name %s (invisible/not on a map)\n", bl->type, clif->get_bl_name(bl)); break; } } @@ -16817,7 +16817,7 @@ BUILDIN(unittalk) { if( bl != NULL ) { struct StringBuf sbuf; StrBuf->Init(&sbuf); - StrBuf->Printf(&sbuf, "%s : %s", status->get_name(bl), message); + StrBuf->Printf(&sbuf, "%s : %s", clif->get_bl_name(bl), message); clif->disp_overhead(bl, StrBuf->Value(&sbuf)); StrBuf->Destroy(&sbuf); } |