Missing Database Reference Hotfix
Database inspector was crashing when selecting a blueprint with missing ingredients
This commit is contained in:
parent
588d89a5d0
commit
8d1b7bed28
10 changed files with 115 additions and 29 deletions
|
|
@ -642,6 +642,12 @@ public class DatabaseInspector : EditorWindow
|
|||
using (var h = new HorizontalScope(_list.ListItemStyle))
|
||||
{
|
||||
var entry = DatabaseCache.Get(ingredient.Key);
|
||||
if (entry == null)
|
||||
{
|
||||
value.Remove(ingredient.Key);
|
||||
GUI.changed = true;
|
||||
return;
|
||||
}
|
||||
if(entry is INamedEntry named)
|
||||
GUILayout.Label(named.EntryName);
|
||||
else GUILayout.Label(entry.ID.ToString());
|
||||
|
|
|
|||
Loading…
Reference in a new issue