| summaryrefslogtreecommitdiff | 
diff options
Diffstat (limited to 'src/shared/struct/shr_character.erl')
| -rw-r--r-- | src/shared/struct/shr_character.erl | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/src/shared/struct/shr_character.erl b/src/shared/struct/shr_character.erl index 68e6cb6..87a9be8 100644 --- a/src/shared/struct/shr_character.erl +++ b/src/shared/struct/shr_character.erl @@ -397,14 +397,15 @@ resolve (LocalOmnimods, CharRef) ->        extra_omnimods = LocalOmnimods     }. --spec to_unresolved (type()) -> unresolved(). -to_unresolved (Char) -> +-spec to_unresolved (either()) -> unresolved(). +to_unresolved (Char) when is_record(Char, shr_char)->     #shr_char_ref     {        name = Char#shr_char.name,        equipment = shr_equipment:to_unresolved(Char#shr_char.equipment),        is_using_secondary = Char#shr_char.is_using_secondary -   }. +   }; +to_unresolved (CharRef) when is_record(CharRef, shr_char_ref) -> CharRef.  -spec decode (map()) -> unresolved().  decode (Map) -> | 


