summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-01-08 11:17:40 +0100
committerHaru <haru@dotalux.com>2016-02-24 21:00:31 +0100
commit9ffd9cd568c5d908fbbec46256fe235021fd87a4 (patch)
tree284f2f47cbf2b5ef3d16dfb5cd8746f4b2a59dfd /src/map/script.c
parent312f1b940e587a10b55fd544eaf4cc2197b1acd5 (diff)
downloadhercules-9ffd9cd568c5d908fbbec46256fe235021fd87a4.tar.gz
hercules-9ffd9cd568c5d908fbbec46256fe235021fd87a4.tar.bz2
hercules-9ffd9cd568c5d908fbbec46256fe235021fd87a4.tar.xz
hercules-9ffd9cd568c5d908fbbec46256fe235021fd87a4.zip
Removed unnecessary explicit casts of the value of WBUFP
- WBUFP now returns a pointer to void, which automatically casts to any non-const or const pointer. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 289ea36e2..9388e8f5f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -5003,7 +5003,7 @@ void script_load_translation(const char *file, uint8 lang_id, uint32 *total) {
RECREATE(st->buf, char, st->len + inner_len);
WBUFB(st->buf, st->len) = lang_id;
- safestrncpy((char*)WBUFP(st->buf, st->len + 1), msgstr.ptr, msgstr_len + 1);
+ safestrncpy(WBUFP(st->buf, st->len + 1), msgstr.ptr, msgstr_len + 1);
st->translations++;
st->len += inner_len;