thisdp / dgs

Thisdp's Dx Graphical User Interface System (MTA Dx Lib)
http://wiki.mtasa.com/wiki/dgs
63 stars 34 forks source link

dgsGetVisible misfunction #61

Closed Ali-Ysf closed 4 years ago

Ali-Ysf commented 4 years ago

Line 273 in fucntions.lua if not dgsElementData[p].visible then return false end p doesn't exist as if it does the loop will break Not sure what the idea is of that code but I changed it to if dgsElementData[p] and not dgsElementData[p].visible then return false end To make it work

thisdp commented 4 years ago

Fixed in https://github.com/thisdp/dgs/commit/53f4d9219d5801c3e30f64e5af700944fc491b80