Corrected RENEWAL_ASPD macro processing (#4259)
* Resolves an issue with the RENEWAL_ASPD macro processing the wrong database as it would go off the current compiled mode. Thanks to @rfperuch!
This commit is contained in:
parent
4ea1b25483
commit
d476934c93
@ -11988,10 +11988,10 @@ void pc_readdb(void) {
|
||||
|
||||
s = pc_read_statsdb(dbsubpath2,s,i > 0);
|
||||
if (i == 0)
|
||||
#ifdef RENEWAL_ASPD
|
||||
sv_readdb(dbsubpath1, DBPATH "job_db1.txt",',',6+MAX_WEAPON_TYPE,6+MAX_WEAPON_TYPE,CLASS_COUNT,&pc_readdb_job1, false);
|
||||
#ifdef RENEWAL_ASPD // Paths are hardcoded here to specifically pick the correct database
|
||||
sv_readdb(dbsubpath1, "re/job_db1.txt",',',6+MAX_WEAPON_TYPE,6+MAX_WEAPON_TYPE,CLASS_COUNT,&pc_readdb_job1, false);
|
||||
#else
|
||||
sv_readdb(dbsubpath1, DBPATH "job_db1.txt",',',5+MAX_WEAPON_TYPE,5+MAX_WEAPON_TYPE,CLASS_COUNT,&pc_readdb_job1, false);
|
||||
sv_readdb(dbsubpath1, "pre-re/job_db1.txt",',',5+MAX_WEAPON_TYPE,5+MAX_WEAPON_TYPE,CLASS_COUNT,&pc_readdb_job1, false);
|
||||
#endif
|
||||
else
|
||||
sv_readdb(dbsubpath1, "job_db1.txt",',',5+MAX_WEAPON_TYPE,6+MAX_WEAPON_TYPE,CLASS_COUNT,&pc_readdb_job1, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user