Additional checks in ActorAssignmentUi
This commit is contained in:
@@ -133,6 +133,11 @@ public class ActorAssignmentUi
|
|||||||
}
|
}
|
||||||
|
|
||||||
var npcCombo = GetNpcCombo(_newKind);
|
var npcCombo = GetNpcCombo(_newKind);
|
||||||
|
|
||||||
|
if (npcCombo.CurrentSelection.Ids == null || npcCombo.CurrentSelection.Ids.Length == 0)
|
||||||
|
NpcIdentifier = ActorIdentifier.Invalid;
|
||||||
|
else
|
||||||
|
{
|
||||||
switch (_newKind)
|
switch (_newKind)
|
||||||
{
|
{
|
||||||
case ObjectKind.BattleNpc:
|
case ObjectKind.BattleNpc:
|
||||||
@@ -149,3 +154,4 @@ public class ActorAssignmentUi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user