Additional checks in ActorAssignmentUi
This commit is contained in:
@@ -133,7 +133,12 @@ public class ActorAssignmentUi
|
|||||||
}
|
}
|
||||||
|
|
||||||
var npcCombo = GetNpcCombo(_newKind);
|
var npcCombo = GetNpcCombo(_newKind);
|
||||||
switch(_newKind)
|
|
||||||
|
if (npcCombo.CurrentSelection.Ids == null || npcCombo.CurrentSelection.Ids.Length == 0)
|
||||||
|
NpcIdentifier = ActorIdentifier.Invalid;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch (_newKind)
|
||||||
{
|
{
|
||||||
case ObjectKind.BattleNpc:
|
case ObjectKind.BattleNpc:
|
||||||
case ObjectKind.EventNpc:
|
case ObjectKind.EventNpc:
|
||||||
@@ -148,4 +153,5 @@ public class ActorAssignmentUi
|
|||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user