Skip to content

Commit

Permalink
systems: fix calling of postinit method
Browse files Browse the repository at this point in the history
The original commit incorrectly attempting to call initpost as the
method to be called after initialization was complete. This had the
effect of disabling scenery descruction tracking in DCT.

Fixes: adcbe02 ("systems: while restoring state ignore scenery events")
(cherry picked from commit 8c02854)
Signed-off-by: Jonathan Toppins <[email protected]>
  • Loading branch information
jtoppins committed May 23, 2021
1 parent 64093cd commit 1c17542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dct/Theater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ end

function Theater:postinitSystems()
for _, sys in pairs(self._systems) do
if type(sys.initpost) == "function" then
sys:initpost(self)
if type(sys.postinit) == "function" then
sys:postinit(self)
end
end
end
Expand Down

0 comments on commit 1c17542

Please sign in to comment.