diff options
Diffstat (limited to 'src/script/api/script_sign.cpp')
-rw-r--r-- | src/script/api/script_sign.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/script/api/script_sign.cpp b/src/script/api/script_sign.cpp index f6dc922b4..ecf0b4c28 100644 --- a/src/script/api/script_sign.cpp +++ b/src/script/api/script_sign.cpp @@ -48,13 +48,8 @@ { if (!IsValidSign(sign_id)) return NULL; - static const int len = 64; - char *sign_name = MallocT<char>(len); - ::SetDParam(0, sign_id); - ::GetString(sign_name, STR_SIGN_NAME, &sign_name[len - 1]); - - return sign_name; + return GetString(STR_SIGN_NAME); } /* static */ TileIndex ScriptSign::GetLocation(SignID sign_id) |