Tautologic condition in mod-gui.lua

This subforum contains all the issues which we already resolved.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Tautologic condition in mod-gui.lua

Post by eradicator »

In /data/core/lualib/mod-gui.lua lines 38/39 currently are:

Code: Select all

  local frame_flow = mod_gui_frame_flow
  if not frame_flow then
but 38 should be:

Code: Select all

  local frame_flow = mod_flow.mod_gui_frame_flow
  if not frame_flow then
Or else mod_gui.make_flow(...) will fail if it is ever called again. Currently it's not called ever again, but it's still technically wrong :P.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5414
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Tautologic condition in mod-gui.lua

Post by Klonan »

The script has already been updated for 0.16, and this bug report is already fixed
Post Reply

Return to “Resolved Problems and Bugs”