pioneerspacesim/pioneer — Issue #1022: Tables don't remain unique when serialised
Author: Brianetta
Created: 2012-02-25 23:48:39+00:00
State: open
Labels: Unexpected behaviour

Table variables in Lua act like pointers to actual table data. The table itself is rarely copied or duplicated.

Pioneer's Lua serializer function iterates through a table's contents, and stores that. This means that when unserialized (at game load) tables which were serialized more than once will become duplicated.