We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc926a5 commit e22360aCopy full SHA for e22360a
msu/hooks/entity/tactical/tactical_entity_manager.nut
@@ -35,6 +35,12 @@
35
36
q.getActorsWithinRange <- function( _tile, _max = 1, _min = 1 )
37
{
38
+ if (_tile.ID == 0)
39
+ {
40
+ ::logError("The ID of _tile is 0 which means that the actor this tile was fetched from is not placed on map.");
41
+ throw ::MSU.Exception.InvalidValue(_tile);
42
+ }
43
+
44
if (_max < _min)
45
46
::logError("_max must be equal to or greater than _min");
@@ -59,6 +65,12 @@
59
65
60
66
q.getAdjacentActors <- function( _tile )
61
67
68
69
70
71
72
73
62
74
local ret = [];
63
75
for (local i = 0; i < 6; i++)
64
76
0 commit comments