From 3632c99f94b762da6c069da10f830f63017dd1c8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 22 Jul 2021 17:47:49 -0400 Subject: Fixed issue with edit command on a creature --- src/cmd_manipulate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_manipulate.cc') diff --git a/src/cmd_manipulate.cc b/src/cmd_manipulate.cc index 2dff5e1..b221c1f 100644 --- a/src/cmd_manipulate.cc +++ b/src/cmd_manipulate.cc @@ -201,7 +201,7 @@ namespace cmd { std::ifstream in(tmp); std::string newText(std::istreambuf_iterator{in}, {}); e->setText(newText); - utils::saveJson(*e, p); + utils::saveJson(e->serialize(), p); return ""; } -- cgit v1.2.3