Fixed error when possessionLocation == null
This commit is contained in:
parent
2c25f7832b
commit
13a48376a3
@ -137,7 +137,7 @@ namespace Passer.Humanoid {
|
||||
public string name;
|
||||
public string avatarPrefabName;
|
||||
public bool physics;
|
||||
public string possessionLocation = null;
|
||||
public string possessionLocation = "";
|
||||
#if RemoteAvatarBundles
|
||||
public int remoteAvatarBundleSize;
|
||||
public byte[] remoteAvatarBundle;
|
||||
@ -202,6 +202,8 @@ namespace Passer.Humanoid {
|
||||
avatarPrefabName = br.ReadString();
|
||||
physics = br.ReadBoolean();
|
||||
possessionLocation = br.ReadString();
|
||||
if (possessionLocation == "")
|
||||
possessionLocation = null;
|
||||
#if RemoteAvatarBundles
|
||||
remoteAvatarBundleSize = br.ReadInt32();
|
||||
remoteAvatarBundle = br.ReadBytes(remoteAvatarBundleSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user