diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-07-19 16:40:34 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-07-19 16:40:34 +0000 |
commit | dacebe74bcf2441882058b15f77a49fe6521b37c (patch) | |
tree | f3d6694d3219134d870979ca937cd36c01074947 /Game/Code/Screens | |
parent | 0dce71da309262fe3591e73d8f0fcfd955b1d5c2 (diff) | |
download | usdx-dacebe74bcf2441882058b15f77a49fe6521b37c.tar.gz usdx-dacebe74bcf2441882058b15f77a49fe6521b37c.tar.xz usdx-dacebe74bcf2441882058b15f77a49fe6521b37c.zip |
Fixed a bug in UScreenTop5: instead of a lokal var a config value was changed to a not existing value when there was a game w/ 6 Players. This causes Player 5's and 6's Scores not to apear in the highscores at the first song and may cause a crash when the config will be saved after singing.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1217 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Screens/UScreenTop5.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Game/Code/Screens/UScreenTop5.pas b/Game/Code/Screens/UScreenTop5.pas index 18c90f5e..4328190f 100644 --- a/Game/Code/Screens/UScreenTop5.pas +++ b/Game/Code/Screens/UScreenTop5.pas @@ -101,7 +101,7 @@ begin //ReadScore(CurrentSong); PMax := Ini.Players; - if Ini.Players = 4 then Ini.Players := 5; + if PMax = 4 then PMax := 5; for I := 0 to PMax do DataBase.AddScore(CurrentSong, Ini.Difficulty, Ini.Name[I], Round(Player[I].ScoreTotalInt)); |