Skip to content

Commit

Permalink
Fixed global names. (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrogaski committed Sep 29, 2016
1 parent a05fe92 commit efc971e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,15 @@ function GwConfig:load()
--
-- Check configuration version
--
if self.cpref == 0 then
if GreenWall.cpref == 0 then
if strmatch(info, 'GWc=".*"') then
gw.Error('Guild configuration uses a format not supported by this version.')
end
if strmatch(info, 'GW:?c:') then
self.cversion = 1
end
else
self.cversion = cpref
self.cversion = GreenWall.cpref
end

if self.cversion == 1 then
Expand Down

0 comments on commit efc971e

Please sign in to comment.