Skip to content

Commit 2d7972f

Browse files
committed
Fixed null pointer error in ESE_Entities.SpawnPrefabOnPlayer()
1 parent f442804 commit 2d7972f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Game/ESE_Entities.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ESE_Entities
5858
}
5959
ChimeraCharacter player = ESE.GetPlayerEntity(playerId);
6060
Resource prefab = Resource.Load(prefabName);
61-
EntitySpawnParams spawnParams;
61+
EntitySpawnParams spawnParams = new EntitySpawnParams();
6262
spawnParams.TransformMode = ETransformMode.WORLD;
6363
player.GetWorldTransform(spawnParams.Transform);
6464

0 commit comments

Comments
 (0)