nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nitrpg: fix warnings
[nit.git]
/
contrib
/
nitrpg
/
src
/
game.nit
diff --git
a/contrib/nitrpg/src/game.nit
b/contrib/nitrpg/src/game.nit
index
6e04b18
..
504c445
100644
(file)
--- a/
contrib/nitrpg/src/game.nit
+++ b/
contrib/nitrpg/src/game.nit
@@
-232,7
+232,7
@@
class Player
#
# Used to load players from saved data.
init from_json(game: Game, json: JsonObject) do
- init(game, json["name"].to_s)
+ init(game, json["name"].as(String))
nitcoins = json["nitcoins"].as(Int)
end