aws / lumberyard

Amazon Lumberyard is a free AAA game engine deeply integrated with AWS and Twitch – with full source.
Other
2.03k stars 540 forks source link

Fix uninitialized value in const cvar for release #421

Closed rustamserg closed 4 years ago

rustamserg commented 5 years ago

Priority 1 Some of cvars declared using DeclareConstIntCVar contains uninitialized value in release build. This fix sets such cvars to its default value. For example cvar: e_MemoryProfiling. For release there is only declaration but initialization is excluded by RELEASE define as result we have random cases when such cvar is not zero and memory profiling info is displayed on the screen

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AMZN-Gene commented 5 years ago

Nice find! I'll see about having this pulled into Lumberyard proper. Thanks Internal tracking: LY-100708

AMZN-alexpete commented 4 years ago

This request has been integrated and will be included in a future release.