From 038da00e799b4bf3af824075a260083c56392964 Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Tue, 6 Sep 2022 13:21:09 +0300 Subject: Code optimizations / refactor (#12704) Co-authored-by: SmallJoker Co-authored-by: sfan5 --- src/script/common/c_content.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/common/c_content.cpp') diff --git a/src/script/common/c_content.cpp b/src/script/common/c_content.cpp index fafb2edc9..f15d41f96 100644 --- a/src/script/common/c_content.cpp +++ b/src/script/common/c_content.cpp @@ -481,7 +481,7 @@ TileDef read_tiledef(lua_State *L, int index, u8 drawtype) else if(lua_istable(L, index)) { // name="default_lava.png" - tiledef.name = ""; + tiledef.name.clear(); getstringfield(L, index, "name", tiledef.name); getstringfield(L, index, "image", tiledef.name); // MaterialSpec compat. tiledef.backface_culling = getboolfield_default( -- cgit v1.2.3