aboutsummaryrefslogtreecommitdiff
path: root/src/entry.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-01 15:10:54 -0400
committerYour Name <you@example.com>2021-05-01 15:10:54 -0400
commit7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d (patch)
treed9b808542216f71dbab053ad23145903e96c6401 /src/entry.cc
parent5a813a75412ac9b8fadb90c9abd46dd95aee8e9b (diff)
downloaddmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.gz
dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.tar.bz2
dmtool-7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d.zip
Added bash completion, amongst others
Diffstat (limited to 'src/entry.cc')
-rw-r--r--src/entry.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entry.cc b/src/entry.cc
index a3b4133..ef2ec96 100644
--- a/src/entry.cc
+++ b/src/entry.cc
@@ -13,9 +13,9 @@ namespace entry {
return Feature::create(data);
} else if(data["entry"] == "item") {
return Item::create(data);
- } else if(data["entry"] == "creature") {
+ } else if(data["entry"] == "creatures") {
return utils::loadDFromJson<Entry, creature::Creature>(data);
- } else if(data["entry"] == "spell") {
+ } else if(data["entry"] == "spells") {
return utils::loadDFromJson<Entry, Spell>(data);
}
throw std::invalid_argument("Invalid entry: " + std::string(data["entry"]));