From ec6eec260d6383ae948505c3d42b3055ae3dd94c Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 26 Apr 2019 15:05:44 +0200 Subject: Makes Dialyzer validate shared & battle. --- src/shared/struct/map/shr_map.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/shared/struct/map/shr_map.erl') diff --git a/src/shared/struct/map/shr_map.erl b/src/shared/struct/map/shr_map.erl index c0bf385..6db984b 100644 --- a/src/shared/struct/map/shr_map.erl +++ b/src/shared/struct/map/shr_map.erl @@ -36,7 +36,7 @@ get_markers/1, get_marker/2, - get_used_tile_ids/1 + get_related_tile_ids/1 ] ). @@ -136,8 +136,8 @@ get_markers_field () -> #map.markers. get_tile_instances_field () -> #map.tile_instances. %%%% Utility --spec get_used_tile_ids (type()) -> ordsets:ordset(shr_tile:id()). -get_used_tile_ids (Map) -> +-spec get_related_tile_ids (type()) -> ordsets:ordset(shr_tile:id()). +get_related_tile_ids (Map) -> UsedTileIDs = lists:foldl ( -- cgit v1.2.3-70-g09d2