Fix NRE in PedsWindow

This commit is contained in:
in0finite 2019-04-25 00:11:52 +02:00
parent bb8e416457
commit 519ddd004e

View file

@ -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 );