Commit 9a0455e
committed
plugins/lua/zone.lua fix: overlay doesn't run when invalid pasture
While the overlay is processing all animals to see where they're
assigned, if it encounters an animal assigned to a nonexistent
civzone or to a building that isn't a civzone, it errors out.
This patch makes the overlay more robust in these cases.
Note that the overlay will not display the relevant animal, nor
will it attempt to repair the invalid assignment.1 parent 1342522 commit 9a0455e
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
992 | | - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
993 | 995 | | |
994 | 996 | | |
995 | 997 | | |
| |||
1150 | 1152 | | |
1151 | 1153 | | |
1152 | 1154 | | |
1153 | | - | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
1154 | 1158 | | |
1155 | 1159 | | |
1156 | 1160 | | |
| |||
0 commit comments