# Turn-based combat - turn starts for two allies

**URL:** <https://forums.unrealengine.com/t/turn-based-combat-turn-starts-for-two-allies/2254367>\
**Category:** C++\
**Tags:** rpg, bug, turn-based, unreal-engine, CPP, question\
**Created:** [January 1, 2025, 7:09pm UTC](https://forums.unrealengine.com/t/turn-based-combat-turn-starts-for-two-allies/2254367 "2025-01-01T19:09:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [January 1, 2025, 11:06pm UTC](https://forums.unrealengine.com/t/turn-based-combat-turn-starts-for-two-allies/2254367/6 "2025-01-01T23:06:11Z")

</div>

Well it’s just causing more missing files at this point. Try putting a break-point durning the turn build process (in visual studio F9) and then try stepping through the code (F10) to see where the errors are occurring

You can disable code optimizations with this:

> [@How to disable optimization for whole project C++ for debug?](https://forums.unrealengine.com/t/how-to-disable-optimization-for-whole-project-c-for-debug/477074/5):
>
> Ran into similar issues when using compiler intrinsics, which clashes with some optimization flags. You might also want to disable the creation of precompiled header files via: // Do not use PCH or Unity builds, PCHUsage = ModuleRules.PCHUsageMode.NoPCHs; // Nor Optimization, since intrinsics clash with those options confusedOptimizeCode = CodeOptimization.Never; That did the trick for me.

It will help you evaluate the contents of TArrays while the code is running (usually optimizations will obstruct the code)

---

_[View the full topic](https://forums.unrealengine.com/t/turn-based-combat-turn-starts-for-two-allies/2254367)._
