TMap::Contains() returns false for an existing key

Hi, thanks for taking a look into this.

I managed to reproduce this behavior on 3 different PCs:

  • one is a Windows 8.1, UE 4.12.4, Visual Studio 2015 Update 2 machine

  • the other two are Windows 10, UE 4.12.5, VS 2015 Update 3 machines

I was not able to reproduce it by moving the code outside of the unreal engine’s unit testing framework. Even slight modifications of the code will cause the error to just disappear. Managing to get a minimal working example was not fun!

I am now attaching the full minimal project, would you kindly give this a second shot? For me reproducing the error is as simple as:

  • open the .uproject file in UE 4.12.5, launcher version with no plugins installed, wait for the editor to finish compiling the dll

  • go to the menu “Window->Developer Tools->Session Frontend”

  • select the editor instance, go to the automation tab, select and run the FailTest

and an “Ensure condition failed” message pops up in a message log window.

Alternatively, the same error happens on my three PCs if I generate the Visual studio 2015 files, build and run the project even in “DebugGame Editor” mode.

Thank you again for your time,