Commit bfc9278804e79eb38cb69c6fb2cdd3d2d2233b14
1 parent
12f05953
fix
git-svn-id: http://svn.net-core.org/repos/t-engine4@5302 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -27,7 +27,7 @@ module(..., package.seeall, class.inherit(Base, Focusable)) | @@ -27,7 +27,7 @@ module(..., package.seeall, class.inherit(Base, Focusable)) | ||
27 | 27 | ||
28 | function _M:init(t) | 28 | function _M:init(t) |
29 | self.tiles = assert(t.tiles, "no Tiles class") | 29 | self.tiles = assert(t.tiles, "no Tiles class") |
30 | - self.tree = assert(t.tree, "no talent tree") | 30 | + self.tree = t.tree or {} |
31 | self.w = assert(t.width, "no width") | 31 | self.w = assert(t.width, "no width") |
32 | self.h = assert(t.height, "no height") | 32 | self.h = assert(t.height, "no height") |
33 | self.tooltip = assert(t.tooltip, "no tooltip") | 33 | self.tooltip = assert(t.tooltip, "no tooltip") |
-
Please register or login to post a comment