[A16] DesignationDragger error if another colony is selected while dragging

Started by Ark, March 10, 2017, 07:32:59 PM

Previous topic - Next topic

Ark

0.16.1393 rev546 Linux 64bit drm-free, no mods.
DesignationDragger causes NullReferenceException if another colony is selected while dragging with mouse.
If debug log auto-open is turned off, 60 errors per second are logged.

Exception in UIRootUpdate: System.NullReferenceException: Object reference not set to an instance of an object
  at Verse.DesignationDragger.UpdateDragCellsIfNeeded () [0x00000] in <filename unknown>:0
  at Verse.DesignationDragger.get_DragCells () [0x00000] in <filename unknown>:0
  at Verse.DesignationDragger.DraggerUpdate () [0x00000] in <filename unknown>:0
  at Verse.DesignatorManager.DesignatorManagerUpdate () [0x00000] in <filename unknown>:0
  at RimWorld.MapInterface.MapInterfaceUpdate () [0x00000] in <filename unknown>:0
  at RimWorld.UIRoot_Play.UIRootUpdate () [0x00000] in <filename unknown>:0

(Filename: /home/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

Repro:
-Start a new game
-Create a caravan, establish a second colony
-Using any tool that selects multiple tiles by dragging, such as the planning or mining designator tool, click and drag mouse over the gray area of the colonist bar of the other colony, and release. Error should pop up. Another method is to use keyboard shortcuts to jump to another colonist at the other colony while dragging with mouse.

[attachment deleted by admin due to age]