memleak fix
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user