From aaeab82425a2dc4fe2567118d5a7e7b8c7f5bb52 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 1 Mar 2022 08:57:08 +0100 Subject: [PATCH] rv:: objmodels:: fixed loading the city model --- rogueviz/objmodels.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rogueviz/objmodels.cpp b/rogueviz/objmodels.cpp index 8972c000..e3a3a9f0 100644 --- a/rogueviz/objmodels.cpp +++ b/rogueviz/objmodels.cpp @@ -95,8 +95,7 @@ void model::load_obj(model_data& md) { object *co = nullptr; bool textured = false; fs.get(); - string oname; - scan(fs, oname); + string oname = scanline(fs); println(hlog, "reading object: ", oname); md.objindex.push_back(isize(md.objs)); hyperpoint ctr = Hypc;