aboutsummaryrefslogtreecommitdiff
path: root/go/ui/mapView.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-15 16:41:29 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:50 +0100
commitf9fef6046fdc6895d5eaa7fc15d9b4f4a02becae (patch)
tree7f3ffdd01af02d60c78ea65bafa75384cf140aac /go/ui/mapView.go
parent0edb119b497bf1283f976693b02e044033d4de08 (diff)
downloadmuhqs-game-f9fef6046fdc6895d5eaa7fc15d9b4f4a02becae.tar.gz
muhqs-game-f9fef6046fdc6895d5eaa7fc15d9b4f4a02becae.zip
replace Fatalf with Panicf
Panicf includes a stacktrace and causes a debugger to halt.
Diffstat (limited to 'go/ui/mapView.go')
-rw-r--r--go/ui/mapView.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/ui/mapView.go b/go/ui/mapView.go
index 697eb774..155750b4 100644
--- a/go/ui/mapView.go
+++ b/go/ui/mapView.go
@@ -138,7 +138,7 @@ func getPermanentSymbol(p game.Permanent, i int) *ebiten.Image {
symbol := fmt.Sprintf("%c%d", unicode.ToUpper(rune(p.Card().Type.String()[0])), i)
permanentSymbol = assets.GetGenericSymbol(symbol)
if permanentSymbol == nil {
- log.Fatalf("Failed to generate generic symbol %s", symbol)
+ log.Panicf("Failed to generate generic symbol %s", symbol)
}
}