aboutsummaryrefslogtreecommitdiff
path: root/src/cmd_manipulate.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-07-22 17:47:49 -0400
committerYour Name <you@example.com>2021-07-22 17:47:49 -0400
commit3632c99f94b762da6c069da10f830f63017dd1c8 (patch)
tree9be0604c3d8b2d5e7d6531ef772ae25b4700118d /src/cmd_manipulate.cc
parent01293baa64fa905c5763020bd6c0b4903d41fc78 (diff)
downloaddmtool-3632c99f94b762da6c069da10f830f63017dd1c8.tar.gz
dmtool-3632c99f94b762da6c069da10f830f63017dd1c8.tar.bz2
dmtool-3632c99f94b762da6c069da10f830f63017dd1c8.zip
Fixed issue with edit command on a creature
Diffstat (limited to 'src/cmd_manipulate.cc')
-rw-r--r--src/cmd_manipulate.cc2
1 files changed, 1 insertions, 1 deletions
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<char>{in}, {});
e->setText(newText);
- utils::saveJson(*e, p);
+ utils::saveJson(e->serialize(), p);
return "";
}