aboutsummaryrefslogtreecommitdiff
path: root/internal/game/casino_commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/casino_commands.go')
-rw-r--r--internal/game/casino_commands.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/game/casino_commands.go b/internal/game/casino_commands.go
index b6deb21..95259c0 100644
--- a/internal/game/casino_commands.go
+++ b/internal/game/casino_commands.go
@@ -88,6 +88,9 @@ func (g *Game) casinoCommandColumns(sess *net.Session, commands []casino.MenuCom
// Input is uncolored command/description text; paint only after measuring.
func casinoWrapWords(text string, width int) []string {
+ if width < 1 {
+ width = 1
+ }
var lines []string
line := ""
for _, word := range strings.Fields(text) {