Commit c3e39e0b0fc82aadb737ae5556319f66178eb8a1
1 parent
ed83108f
add a check for savefile compatibility
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -323,7 +323,7 @@ newTalent{ |
323 | 323 | self.x, self.y = x1, y1 |
324 | 324 | end |
325 | 325 | end |
326 | - local x2, y2 = util.findFreeGrid(p.target_x, p.target_y, 20, true, {[Map.ACTOR]=true}) | |
326 | + local x2, y2 = util.findFreeGrid(p.target_x or p.x, p.target_y or p.y, 20, true, {[Map.ACTOR]=true}) | |
327 | 327 | if not p.target.dead then |
328 | 328 | if x2 then |
329 | 329 | p.target:move(x2, y2, true) | ... | ... |
-
Please register or login to post a comment