mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
Not every scene has triggers, that is normal (#831)
Quell the onslaught of meaningless logs
This commit is contained in:
parent
7429902a64
commit
848c066924
@ -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<LUTriggers::Trigger*> triggers = LoadLUTriggers(luTriggersPath, scene.id);
|
||||
std::vector<LUTriggers::Trigger*> triggers;
|
||||
if(Game::assetManager->HasFile(luTriggersPath.c_str())) triggers = LoadLUTriggers(luTriggersPath, scene.id);
|
||||
|
||||
for (LUTriggers::Trigger* trigger : triggers) {
|
||||
scene.triggers.insert({ trigger->id, trigger });
|
||||
|
Loading…
Reference in New Issue
Block a user