mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
Contentpack info out of bounds fix
This commit is contained in:
parent
f5e5343b07
commit
f18dc03c4c
@ -402,10 +402,10 @@
|
||||
Dim s() As String = ContentPackManager.GetContentPackInfo(packName)
|
||||
|
||||
If s.Length > 0 Then
|
||||
PInfoVersion = s(0)
|
||||
PInfoVersion = s(0).CropStringToWidth(FontManager.InGameFont, 540 - 16 - CInt(FontManager.InGameFont.MeasureString(Localization.GetString("option_screen_contentpacks_version")).X))
|
||||
End If
|
||||
If s.Length > 1 Then
|
||||
PInfoAuthor = s(1)
|
||||
PInfoAuthor = s(1).CropStringToWidth(FontManager.InGameFont, 540 - 16 - CInt(FontManager.InGameFont.MeasureString(Localization.GetString("option_screen_contentpacks_by")).X))
|
||||
End If
|
||||
If s.Length > 2 Then
|
||||
PInfoDescription = s(2).CropStringToWidth(FontManager.InGameFont, 540)
|
||||
@ -418,7 +418,6 @@
|
||||
Private PInfoVersion As String = ""
|
||||
Private PInfoAuthor As String = ""
|
||||
Private PInfoDescription As String = ""
|
||||
Private PInfoContent As String = ""
|
||||
|
||||
Private Sub DrawPackInformationMenu()
|
||||
If Not PInfoSplash Is Nothing Then
|
||||
|
Loading…
x
Reference in New Issue
Block a user