mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
Add missing db save.
This commit is contained in:
parent
1792ceb6a3
commit
3e6326747e
1 changed files with 3 additions and 1 deletions
|
|
@ -338,8 +338,10 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
storage->load(*database, {});
|
||||
action([&storage, &mapname](const path &, const auto &m) {write_mmo(storage.get(), m, mapname); });
|
||||
if (inserted_all)
|
||||
if (inserted_all) {
|
||||
storage->save(*database, {});
|
||||
database->save();
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue