forked from mirrors/0ad
bb31e6b6b1
As long as there's no entity under the cursor, 11 calls were made per tick with an undefined entity ID, which are now caught. In general, an "entity state" can very well be null if the passed ID is undefined, invalid or no entity with the ID exists (anymore). This last case is only noticed by the GuiInterface and currently used to detect destroyed entities.