summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2019-06-03 00:18:22 +0200
committerGitHub <noreply@github.com>2019-06-03 00:18:22 +0200
commitd60605d1898d584e4ed527011ab65f35e2238b2f (patch)
tree78aebf10a2b435a2b0ff5593f0d4db775b47218b
parent8226ed932ed4bea1da3bf1e5436272d73f2a8222 (diff)
parentd2b8463b7d2b64ab122e86b2f9e44cba0b680caf (diff)
downloadhercules-d60605d1898d584e4ed527011ab65f35e2238b2f.tar.gz
hercules-d60605d1898d584e4ed527011ab65f35e2238b2f.tar.bz2
hercules-d60605d1898d584e4ed527011ab65f35e2238b2f.tar.xz
hercules-d60605d1898d584e4ed527011ab65f35e2238b2f.zip
Merge pull request #2486 from guilherme-gm/minimal-loadoptions
Adds Option DB and Option Drop Groups DB to be loaded on minimal mode
-rw-r--r--src/map/itemdb.c3
-rw-r--r--src/map/mob.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 11d778f8a..8caf88a4e 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -2449,6 +2449,8 @@ static void itemdb_read(bool minimal)
itemdb->other->foreach(itemdb->other, itemdb->addname_sub);
+ itemdb->read_options();
+
if (minimal)
return;
@@ -2458,7 +2460,6 @@ static void itemdb_read(bool minimal)
itemdb->read_groups();
itemdb->read_chains();
itemdb->read_packages();
- itemdb->read_options();
}
/**
diff --git a/src/map/mob.c b/src/map/mob.c
index aa938a1e7..8511f8523 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -5519,7 +5519,8 @@ static bool mob_readdb_itemratio(char *str[], int columns, int current)
static void mob_load(bool minimal)
{
if (minimal) {
- // Only read the mob db in minimal mode
+ // Only read the mob db and option drops in minimal mode
+ mob->read_optdrops_db();
mob->readdb();
return;
}