fixed bug with potentially changing global variable in thread
authorHolger Schemel <info@artsoft.org>
Wed, 23 Jun 2021 07:52:38 +0000 (09:52 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 23 Jun 2021 08:07:17 +0000 (10:07 +0200)
commit2039565fc917d862b03755c0172f448e73259ee6
tree6a4ec7e6e3f9cacd6932b9ca106fd8e0df35a9a3
parenta88bb81d863f922e518970df22fcff1bb3c15c4c
fixed bug with potentially changing global variable in thread

When automatically incrementing level after solved game, the global
variable to store the level number may be changed while the thread
to upload the score to the server is just using it, which may cause
the score to be submitted for the wrong level number.

To fix this, the (already existing) local variable with the level
number is used instead.
src/files.c