Skip to content

Commit

Permalink
Bugfix: Rename undefined 'config' variable' to existing 'cfg_objects'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberth289346 committed Nov 14, 2016
1 parent c6d592f commit 2936d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CorsixTH/Lua/hospital.lua
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ function Hospital:afterLoad(old, new)
local build_cost = rooms[room.level_config_id].Cost
for name, no in pairs(room.objects_needed) do
-- Add cost for this object.
build_cost = build_cost + config[TheApp.objects[name].thob].StartCost * no
build_cost = build_cost + cfg_objects[TheApp.objects[name].thob].StartCost * no
end
-- Now define the total build cost for the room.
room.build_cost = build_cost
Expand Down

0 comments on commit 2936d50

Please sign in to comment.