[boskid][2.0.42] Pretty printer for LuaPlayer has the wrong value for index

This subforum contains all the issues which we already resolved.
kryojenik
Inserter
Inserter
Posts: 45
Joined: Fri Jun 26, 2020 8:18 pm
Contact:

[boskid][2.0.42] Pretty printer for LuaPlayer has the wrong value for index

Post by kryojenik »

I believe this is only a minor cosmetic issue, but figured I'd report it anyway.

When doing game.print() on a LuaPlayer object it pretty prints some of the members (index, name, controller, position, surface, and connected). In that display it shows the index as '0' when the index is actually 1. If you interrogate the object directly and print the 'index' member you get the correct value.
pic
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3765
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid][2.0.42] Pretty printer for LuaPlayer has the wrong value for index

Post by boskid »

Fixed for 2.0.44.
Post Reply

Return to “Resolved Problems and Bugs”