Sid Meier's Civilization VI

Sid Meier's Civilization VI

Buildable Roads
3 kommentarer
Gray Pockets 6. feb. 2024 kl. 20:50 
There is an unnecessary ~= nil in there.

Line 88 of BuildableRoads_UI_Button.lua should be:

if bIsUnitSelected and (iLocationX~= nil and iLocationY~=nil) then
Zegangani  [ophavsmand] 30. dec. 2023 kl. 15:49 
@DARKNESS, Thanks for the report! I think I know the Issue, will try to fix it tomorrow.
DARKNESS 29. dec. 2023 kl. 16:57 
Thanks for the mod. Unfortunately log is flooding with this runtime error:

Runtime Error: C:\Games\Steam\steamapps\workshop\content\289070\3099167580\BuildableRoads_UI_Button.lua:88: attempt to index a nil value
stack traceback:
C:\Games\Steam\steamapps\workshop\content\289070\3099167580\BuildableRoads_UI_Button.lua:88: in function 'BuildableRoad_OnUnitSelectionChanged'
C:\Games\Steam\steamapps\workshop\content\289070\3099167580\BuildableRoads_UI_Button.lua:69: in function 'BuildableRoad_OnUnitMoved'
[C]: in function 'func'
[C]: in function '(anonymous)'