I just tried running it with default tileset (curses 800x600) and it crashes. Am i doing something wrong?
Crashlog:
Unrecovered Error:
The following error was not properly recovered, please report this ASAP!
runtime error: invalid memory address or nil pointer dereference
runtime.errorString: "invalid memory address or nil pointer dereference"
Stack Trace:
goroutine 1 [running, locked to thread]:
main.main.func1()
//FREENAS/GlobalDocuments/Projects/Go/src/wshopcreate/main.go:140 +0x383
panic(0x8315c0, 0xc082002080)
C:/go/src/runtime/panic.go:426 +0x4f7
dctech/tilerl.(*TileSheet).Free(0x0)
//FREENAS/Global Documents/Projects/Go/src/dctech/tilerl/image.go:113 +0x71
panic(0x8315c0, 0xc082002080)
C:/go/src/runtime/panic.go:426 +0x4f7
dctech/tilerl.(*TileSheet).Free(0x0)
//FREENAS/Global Documents/Projects/Go/src/dctech/tilerl/image.go:113 +0x71
panic(0x8315c0, 0xc082002080)
C:/go/src/runtime/panic.go:426 +0x4f7
dctech/tilerl.(*TileSheet).CellSize(0x0, 0x0, 0xc08205bc80)
//FREENAS/Global Documents/Projects/Go/src/dctech/tilerl/image.go:94 +0x8f
dctech/tilerl.MakeEditScreen(0x33, 0x22, 0x13, 0x4, 0x1e, 0xb01690, 0xff000000ff406680, 0x20, 0x0, 0xc0820abb80, ...)
//FREENAS/Global Documents/Projects/Go/src/dctech/tilerl/gui_input.go:30 +0x175
main.main()
//FREENAS/GlobalDocuments/Projects/Go/src/wshopcreate/main.go:324 +0x2f31
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
C:/go/src/runtime/asm_amd64.s:1998 +0x1