# TSoftObjectPtr points to actor within wrong UWorld when running PIE

**URL:** <https://forums.unrealengine.com/t/tsoftobjectptr-points-to-actor-within-wrong-uworld-when-running-pie/411660>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 7, 2017, 4:42pm UTC](https://forums.unrealengine.com/t/tsoftobjectptr-points-to-actor-within-wrong-uworld-when-running-pie/411660 "2017-12-07T16:42:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![UnexpectedSquirt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UnexpectedSquirt](https://forums.unrealengine.com/u/UnexpectedSquirt)\
**Post date:** [September 14, 2018, 2:34pm UTC](https://forums.unrealengine.com/t/tsoftobjectptr-points-to-actor-within-wrong-uworld-when-running-pie/411660/3 "2018-09-14T14:34:18Z")

</div>

I’m running into this problem as well, and am similarly confused as to whether this is by design or not.

My use case is checking the health state of an actor placed in a specific map from my game mode blueprint. In PIE, it returns the incorrect version of that actor resulting in wrong health values.

 ![253695-assetptr.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/2/6020455932a25f55e8a0b01cd8ad204e0a9aa604.jpeg)

It seems like there _should_ be a way to have an asset pointer return the version of that asset for the current world, but I can’t seem to find it.

Using an Actor Iterator is not a great solution, btw 😛

---

_[View the full topic](https://forums.unrealengine.com/t/tsoftobjectptr-points-to-actor-within-wrong-uworld-when-running-pie/411660)._
