null check

This commit is contained in:
Hubert Mattusch 2023-09-15 16:53:41 +02:00
parent 6b01de0095
commit 1abfcc0042

View File

@ -183,6 +183,8 @@ namespace NEG.UI
while (popupsToShow.TryDequeue(out var d, out int p)) while (popupsToShow.TryDequeue(out var d, out int p))
{ {
if(d == null)
continue;
if(!d.IsValid) if(!d.IsValid)
continue; continue;
if(d == currentShownPopup.data) if(d == currentShownPopup.data)