We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 012ab83 commit 758c78fCopy full SHA for 758c78f
ChaosMod/Util/Player.h
@@ -41,7 +41,8 @@ inline void TeleportPlayer(const Vector3 &coords, bool noOffset = false)
41
42
inline void TeleportPlayerFindZ(float x, float y)
43
{
44
- bool shouldPause = GetComponent<EffectDispatchTimer>()->IsUsingDistanceBasedDispatch()
+ bool shouldPause = ComponentExists<EffectDispatchTimer>()
45
+ && GetComponent<EffectDispatchTimer>()->IsUsingDistanceBasedDispatch()
46
&& !GetComponent<EffectDispatchTimer>()->IsTimerPaused();
47
48
if (shouldPause)
0 commit comments