This commit is contained in:
Aaron Kimbre 2022-04-17 20:24:19 -05:00
parent 0778b4f81c
commit 6cef7a437a

View File

@ -10,10 +10,11 @@ void WhFans::OnStartup(Entity* self) {
} }
void WhFans::ToggleFX(Entity* self, bool hit) { void WhFans::ToggleFX(Entity* self, bool hit) {
std::string fanGroup = ""
try { try {
std::string fanGroup = self->GetGroups()[0]; fanGroup = self->GetGroups()[0];
} catch(...) { } catch(...) {
std::string fanGroup = ""; fanGroup = "";
} }
Game::logger->Log("WhFans", "Toggling FX for Fan Group(%s)\n", fanGroup.c_str()); Game::logger->Log("WhFans", "Toggling FX for Fan Group(%s)\n", fanGroup.c_str());