From 6913a5100a03a0267870974dd18c6d834cc0e7e2 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Thu, 15 Aug 2024 22:38:45 -0400 Subject: [PATCH] Fixed a bug corrupting an entity after saving and loading multiple times in a row --- Nuake/src/Scene/Components/NetScriptComponent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nuake/src/Scene/Components/NetScriptComponent.h b/Nuake/src/Scene/Components/NetScriptComponent.h index 2b1438a8..58368566 100644 --- a/Nuake/src/Scene/Components/NetScriptComponent.h +++ b/Nuake/src/Scene/Components/NetScriptComponent.h @@ -77,7 +77,7 @@ namespace Nuake { if (e.Value.has_value()) { varJ["Value"] = std::any_cast(e.Value); - varJ["DefaultValue"] = std::any_cast(e.DefaultValue); + varJ["DefaultValue"] = ""; } else {