Load the NPC and warp JSON files according to the config file.

NPC data was being read from the config, but ignored.
This commit is contained in:
2020-08-25 03:45:04 +02:00
parent 6f1a72ca0f
commit 113ce0af07
4 changed files with 7 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ void NPCManager::init() {
// load NPCs from NPCs.json into our NPC manager
try {
std::ifstream inFile("NPCs.json");
std::ifstream inFile(settings::NPCJSON);
nlohmann::json npcData;
// read file into json
@@ -37,7 +37,7 @@ void NPCManager::init() {
}
try {
std::ifstream infile("warps.json");
std::ifstream infile(settings::WARPJSON);
nlohmann::json warpData;
// read file into json