summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-04-29 23:18:05 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2019-04-29 23:18:05 +0200
commitdea436b41c8a53390f2c45fb9609d7f41aeb52e4 (patch)
tree1d994b48274f9cf52e7c604c63ef4e5154285c7f
parentc28f8c07374493de31e5581dcd53ad99a2ff917a (diff)
Found why Dialyzer inferred type(), not either().
-rw-r--r--src/shared/struct/inventory/shr_equipment.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/struct/inventory/shr_equipment.erl b/src/shared/struct/inventory/shr_equipment.erl
index a931444..b56a83c 100644
--- a/src/shared/struct/inventory/shr_equipment.erl
+++ b/src/shared/struct/inventory/shr_equipment.erl
@@ -177,7 +177,7 @@ get_portrait_id (#shr_eq{ portrait = R }) -> shr_portrait:get_id(R).
get_glyph_board_id (#shr_eq_ref{ glyph_board = R }) -> R;
get_glyph_board_id (#shr_eq{ glyph_board = R }) -> shr_glyph_board:get_id(R).
--spec get_glyph_ids (type()) -> list(shr_glyph:id()).
+-spec get_glyph_ids (either()) -> list(shr_glyph:id()).
get_glyph_ids (#shr_eq_ref{ glyphs = R }) -> R;
get_glyph_ids (#shr_eq{ glyphs = R }) -> lists:map(fun shr_glyph:get_id/1, R).