From 846b972047ca4711a743344710fc30d64c3a47e5 Mon Sep 17 00:00:00 2001 From: kj16609 Date: Tue, 16 Dec 2025 20:32:19 -0500 Subject: [PATCH] Fixes more errors --- src/editor/src/gui/drawGameObject.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/editor/src/gui/drawGameObject.cpp b/src/editor/src/gui/drawGameObject.cpp index 18c7235..041c34e 100644 --- a/src/editor/src/gui/drawGameObject.cpp +++ b/src/editor/src/gui/drawGameObject.cpp @@ -11,7 +11,9 @@ namespace fgl::engine::gui { static std::string name_input_temp {}; name_input_temp = game_object.getName(); - ImGui::InputText( "Name", &name_input_temp ); + static std::array< char, 1024 > buffer {}; + std::memcpy( buffer.data(), name_input_temp.data(), name_input_temp.size() ); + ImGui::InputText( "Name", buffer.data(), buffer.size() ); if ( game_object.getName() != name_input_temp ) game_object.setName( name_input_temp ); /*