utilForever/Cubby-v1

Uninitialized 'counter' variable used if file isn't properly opened.

Opened this issue · 2 comments

In function void CreateCharacter::UpdateCustomCounter(int incrementValue), uninitialized 'counter' variable is in use.

If file.is_open() returns false, counter will be uninitialized, which is used in sprintf function.

Thanks. I'll check it.

Fixed in 0629c0f.