From 848c0669248c506e5b916f52b9fec436ac655548 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Sat, 12 Nov 2022 08:44:37 -0600 Subject: [PATCH] Not every scene has triggers, that is normal (#831) Quell the onslaught of meaningless logs --- dZoneManager/Zone.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dZoneManager/Zone.cpp b/dZoneManager/Zone.cpp index eb1d789a..3a1127a4 100644 --- a/dZoneManager/Zone.cpp +++ b/dZoneManager/Zone.cpp @@ -233,7 +233,8 @@ void Zone::LoadScene(std::istream& file) { scene.filename = BinaryIO::ReadString(file, sceneFilenameLength); std::string luTriggersPath = scene.filename.substr(0, scene.filename.size() - 4) + ".lutriggers"; - std::vector triggers = LoadLUTriggers(luTriggersPath, scene.id); + std::vector triggers; + if(Game::assetManager->HasFile(luTriggersPath.c_str())) triggers = LoadLUTriggers(luTriggersPath, scene.id); for (LUTriggers::Trigger* trigger : triggers) { scene.triggers.insert({ trigger->id, trigger });