Fix for Hot-Reloading

Changes to MatchmakingManager resulted in VMF having a nil value for _ingame_ui after hot-reloading, breaking all custom views.
This commit is contained in:
fracticality 2022-01-04 09:14:50 -07:00 committed by Dreomite
parent 5c8aa7cba5
commit e88fde7d04

View file

@ -398,4 +398,4 @@ end
-- #####################################################################################################################
-- If VMF is reloaded mid-game, get ingame_ui.
_ingame_ui = Managers.matchmaking and Managers.matchmaking[VT1 and "ingame_ui" or "_ingame_ui"]
_ingame_ui = (VT1 and Managers.matchmaking and Managers.matchmaking.ingame_ui) or (Managers.ui and Managers.ui._ingame_ui)