bwapi/bwapi — pull request #523 by tscmoo (2014-11-07 09:26:29+00:00)
Title: Fixed getID() returning -1 for some units acquired through getOrderTarge...

...t etc.

Units did not have their ID set until they were first accessible, so if you somehow got the pointer to a unit that was never accessible, its getID() would return -1.