Fix bug in gm-editor

Fix a small bug that broken some flag editing.
develop
warmist 2015-09-20 18:10:19 +03:00
parent 051a1f9661
commit 88d65b18a1
1 changed files with 1 additions and 0 deletions

@ -174,6 +174,7 @@ function GmEditorUi:getSelectedEnumType()
local trg=self:currentTarget()
local trg_key=trg.keys[self.subviews.list_main:getSelected()]
if trg.target._field==nil then return nil end
if trg.target:_field(trg_key)==nil then return nil end
local enum=trg.target:_field(trg_key)._type
if enum._kind=="enum-type" then
return enum