Skip to content

Commit

Permalink
fix: type inference
Browse files Browse the repository at this point in the history
needed to compile on OpenBSD, Crystal v1.4.1
  • Loading branch information
lewis-weinberger committed Dec 10, 2023
1 parent 8ec13d3 commit 8453663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game.cr
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module Mud::Game
Log.info { "World loaded from #{uri}" }

# Make sure admin account consistent with command line invocation
admin = players.fetch("admin") { Player.new("admin", 0, @admin, "Lobby") }
admin = players.fetch("admin") { Player.new("admin", 0_u16, @admin, "Lobby") }
admin.password = @admin
players["admin"] = admin

Expand All @@ -74,7 +74,7 @@ module Mud::Game

# TODO

admin = Player.new("admin", 0, @admin, "Lobby")
admin = Player.new("admin", 0_u16, @admin, "Lobby")
Log.info { "World generated from scratch" }

{players, areas}
Expand Down

0 comments on commit 8453663

Please sign in to comment.