mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-09-26 03:18:58 +02:00
Fix mail crash when pressing cancel with keyboard
This commit is contained in:
parent
705ff1582c
commit
1ce82cbc06
@ -433,10 +433,12 @@
|
||||
End If
|
||||
|
||||
Dim text As String = ""
|
||||
If TakenFromParty = False Then
|
||||
text = Core.Player.Mails(index - 1).MailText.CropStringToWidth(FontManager.MainFont, 600)
|
||||
Else
|
||||
text = TempNewMail.MailText.CropStringToWidth(FontManager.MainFont, 600)
|
||||
If index <> -1 Then
|
||||
If TakenFromParty = False Then
|
||||
text = Core.Player.Mails(index - 1).MailText.CropStringToWidth(FontManager.MainFont, 600)
|
||||
Else
|
||||
text = TempNewMail.MailText.CropStringToWidth(FontManager.MainFont, 600)
|
||||
End If
|
||||
End If
|
||||
Dim yPlus As Integer = CInt(FontManager.MainFont.MeasureString(text).Y)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user