Skip to content

Commit

Permalink
small patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Simcra committed Aug 9, 2016
1 parent 1bd7fbc commit a322695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ end
local function on_configuration_changed(_config_data)
init_globals()
local mod_changes = _config_data["mod_changes"]
if mod_changes and mod_changes["Surfaces"] then
if mod_changes and mod_changes["Surfaces"] and mod_changes["Surfaces"]["old_version"] then
local ver = _config_data["mod_changes"]["Surfaces"]["old_version"]
local ver_parts = string.gmatch(ver, "%d+")
local ver_rel, ver_mjr, ver_mnr = tonumber(ver_parts()), tonumber(ver_parts()), tonumber(ver_parts())
Expand Down Expand Up @@ -172,4 +172,4 @@ remote.add_interface("Surfaces", {
surfaces.migrate_surface(v, _separator)
end
end
})
})

0 comments on commit a322695

Please sign in to comment.