From c4dd85be5352fe842c8fa2518d326ad8606fb8fc Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 15 Dec 2021 14:33:16 -0600 Subject: [PATCH] Added error log for die roll --- dScripts/LegoDieRoll.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dScripts/LegoDieRoll.cpp b/dScripts/LegoDieRoll.cpp index 940a842c..4de51a04 100644 --- a/dScripts/LegoDieRoll.cpp +++ b/dScripts/LegoDieRoll.cpp @@ -1,5 +1,6 @@ #include "LegoDieRoll.h" #include "Entity.h" +#include "dLogger.h" #include "GameMessages.h" void LegoDieRoll::OnStartup(Entity* self) { @@ -35,6 +36,7 @@ void LegoDieRoll::OnTimerDone(Entity* self, std::string timerName) { GameMessages::SendPlayAnimation(self, u"roll-die-6"); break; default: + Game::logger->Log("LegoDieRoll", "Invalid animation: roll-die-%i\n", dieRoll); break; } }