Prevent crashes in case obs_module_text() is called during shutdown

This commit is contained in:
WarmUpTill 2023-03-23 21:48:30 +01:00 committed by WarmUpTill
parent 6f2c53d14e
commit 9dce6a99fd

View File

@ -16,6 +16,9 @@
const char *obs_module_text(const char *text)
{
if (!switcher) {
return "";
}
return switcher->translate(text);
}