Hello. I have a SFML project programmed in C++ that is in Visual Studio 2015. I have a constant integer called playerSpeed which is set to 160, however even though it is a constant somehow it manages to change to 10. I am unable to replicate this issue apart from in my project.
I have uploaded a video demonstrating the problem:
Do you have another variable called playerSpeed in scope that is shadowing it? It might be useful to to set "playerSpeed" in the watch window and step through each line of created and using one of your LevelState objects that has the constant defined. If all your instances of LevelState will have the same value, you may also consider making it static in addition to const.