diff options
author | Your Name <you@example.com> | 2021-05-05 09:44:50 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-05-05 09:44:50 -0400 |
commit | 2a9f262e6db5906db445d465e500d7ba8c90fab3 (patch) | |
tree | 34f850754b0c9114ede9d7b2bb8da90dffddc4fe /src/feature.cc | |
parent | 8614137f7f32f2c9f3c11419110cd70dd7f3b505 (diff) | |
download | dmtool-2a9f262e6db5906db445d465e500d7ba8c90fab3.tar.gz dmtool-2a9f262e6db5906db445d465e500d7ba8c90fab3.tar.bz2 dmtool-2a9f262e6db5906db445d465e500d7ba8c90fab3.zip |
Implemented additional commands
Diffstat (limited to 'src/feature.cc')
-rw-r--r-- | src/feature.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature.cc b/src/feature.cc index 1f83402..c42aba2 100644 --- a/src/feature.cc +++ b/src/feature.cc @@ -11,7 +11,7 @@ typedef nlohmann::json json; namespace entry { shared_ptr<Feature> Feature::create(const json& data) { - if(data["type"] == "spellcasting") { + if(data["type"] == "spells") { return utils::loadDFromJson<Feature, Spellcasting>(data); } else if(data["type"] == "attack") { return utils::loadDFromJson<Feature, Attack>(data); |