Skip to content

Commit

Permalink
don't use panic in GetFaction()
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Aug 23, 2024
1 parent bb3d602 commit bc76869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sim/core/racials.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,6 @@ func (character *Character) GetFaction() proto.Faction {
} else if slices.Contains([]proto.Race{proto.Race_RaceOrc, proto.Race_RaceTroll, proto.Race_RaceTauren, proto.Race_RaceUndead}, character.Race) {
return proto.Faction_Horde
} else {
panic("Invalid character faction")
return proto.Faction_Unknown
}
}

0 comments on commit bc76869

Please sign in to comment.