Add missing db save.

This commit is contained in:
lzwdgc 2021-06-04 16:57:07 +03:00
parent 1792ceb6a3
commit 3e6326747e

View file

@ -338,8 +338,10 @@ int main(int argc, char *argv[])
} }
storage->load(*database, {}); storage->load(*database, {});
action([&storage, &mapname](const path &, const auto &m) {write_mmo(storage.get(), m, mapname); }); action([&storage, &mapname](const path &, const auto &m) {write_mmo(storage.get(), m, mapname); });
if (inserted_all) if (inserted_all) {
storage->save(*database, {}); storage->save(*database, {});
database->save();
}
} }
return 0; return 0;