X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fblock.cpp;h=e99c5be254b2fbb16309ca31b946bbf0be215071;hb=1e93bfb5089737f6b6d8fdd2f17260944fca44b2;hp=937291810c5f0557a8d52d1b862316a601ce28ba;hpb=b94a7dc7daad9ae9be90a39d723e332dae375325;p=blank.git diff --git a/src/world/block.cpp b/src/world/block.cpp index 9372918..e99c5be 100644 --- a/src/world/block.cpp +++ b/src/world/block.cpp @@ -148,9 +148,11 @@ void BlockType::Read( if (name == "visible") { visible = in.GetBool(); } else if (name == "texture") { + textures.clear(); in.ReadString(name); textures.push_back(tex_index.GetID(name)); } else if (name == "textures") { + textures.clear(); in.Skip(Token::BRACKET_OPEN); while (in.Peek().type != Token::BRACKET_CLOSE) { in.ReadString(name);