weather: fix possible segfault

This commit is contained in:
2022-01-14 22:43:24 +01:00
parent c0aded3942
commit 4c17028a9b

View File

@@ -208,6 +208,9 @@ void CWeather::show(int x, int y)
void CWeather::hide() void CWeather::hide()
{ {
if (!form)
return;
if (form->isPainted()) if (form->isPainted())
{ {
form->hide(); form->hide();