Forcing encoding of player's default name

It can cause a crash later if it's the wrong encoding, and this seems to
fix said crash.
This commit is contained in:
mshirt 2017-06-07 23:59:07 -07:00
parent 7b0b8e0a9c
commit 0a5b36438d
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -23,3 +23,4 @@ oneshot_JA_2_ver4.pot
oneshot_JA_2_fixed_ver3.pot
oneshot_JA_2_ver3_checked.pot
oneshot_JA_Mariko1_WIP.pot
*.pot

View file

@ -12,7 +12,7 @@ class Game_Oneshot
if $GDC
@player_name = ''
else
@player_name = Game_Oneshot.get_user_name
@player_name = Game_Oneshot.get_user_name.force_encoding("utf-8")
end
@lights = {}
@plight_timer = nil