memleak fix

This commit is contained in:
2019-11-04 16:30:06 +03:00
parent 8c428838d6
commit fd27dfd636
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ func (l *Level) Put (x, y int, tileFunc interface{}) {
func NewLevel(ctx util.ClientCtx, branch string, depth int) *Level {
l := &Level{
ctx: ctx,
Name: branch + string(depth),
Depth: depth,
Rect: types.NewRect(0,0, mapWidth, mapHeight),