mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
Fix NRE in PedsWindow
This commit is contained in:
parent
bb8e416457
commit
519ddd004e
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ namespace SanAndreasUnity.UI {
|
|||
|
||||
|
||||
// info about current ped
|
||||
if (playerExists) {
|
||||
if (playerExists && Ped.Instance.PedDef != null) {
|
||||
GUILayout.Label ("Current ped:");
|
||||
this.DisplayPed( GetLayoutRect( rowHeight ), Ped.Instance.PedDef, false, true, widthPercsLabels,
|
||||
widthPercsButtons, buttonSpacing );
|
||||
|
|
Loading…
Reference in a new issue