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 name;
|
||||||
public string avatarPrefabName;
|
public string avatarPrefabName;
|
||||||
public bool physics;
|
public bool physics;
|
||||||
public string possessionLocation = null;
|
public string possessionLocation = "";
|
||||||
#if RemoteAvatarBundles
|
#if RemoteAvatarBundles
|
||||||
public int remoteAvatarBundleSize;
|
public int remoteAvatarBundleSize;
|
||||||
public byte[] remoteAvatarBundle;
|
public byte[] remoteAvatarBundle;
|
||||||
@ -202,6 +202,8 @@ namespace Passer.Humanoid {
|
|||||||
avatarPrefabName = br.ReadString();
|
avatarPrefabName = br.ReadString();
|
||||||
physics = br.ReadBoolean();
|
physics = br.ReadBoolean();
|
||||||
possessionLocation = br.ReadString();
|
possessionLocation = br.ReadString();
|
||||||
|
if (possessionLocation == "")
|
||||||
|
possessionLocation = null;
|
||||||
#if RemoteAvatarBundles
|
#if RemoteAvatarBundles
|
||||||
remoteAvatarBundleSize = br.ReadInt32();
|
remoteAvatarBundleSize = br.ReadInt32();
|
||||||
remoteAvatarBundle = br.ReadBytes(remoteAvatarBundleSize);
|
remoteAvatarBundle = br.ReadBytes(remoteAvatarBundleSize);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user