mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
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:
parent
7b0b8e0a9c
commit
0a5b36438d
2 changed files with 2 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -23,3 +23,4 @@ oneshot_JA_2_ver4.pot
|
||||||
oneshot_JA_2_fixed_ver3.pot
|
oneshot_JA_2_fixed_ver3.pot
|
||||||
oneshot_JA_2_ver3_checked.pot
|
oneshot_JA_2_ver3_checked.pot
|
||||||
oneshot_JA_Mariko1_WIP.pot
|
oneshot_JA_Mariko1_WIP.pot
|
||||||
|
*.pot
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ class Game_Oneshot
|
||||||
if $GDC
|
if $GDC
|
||||||
@player_name = ''
|
@player_name = ''
|
||||||
else
|
else
|
||||||
@player_name = Game_Oneshot.get_user_name
|
@player_name = Game_Oneshot.get_user_name.force_encoding("utf-8")
|
||||||
end
|
end
|
||||||
@lights = {}
|
@lights = {}
|
||||||
@plight_timer = nil
|
@plight_timer = nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue