Use mutex for proper synchronization
* Guard both hack and reader threads so that only one thread can interact with critical variables at a time. This fixes exception related to bone esp.
This commit is contained in:
@@ -68,6 +68,9 @@ void CGame::close() {
|
||||
}
|
||||
|
||||
void CGame::loop() {
|
||||
|
||||
std::lock_guard<std::mutex> lock(dataMutex);
|
||||
|
||||
inGame = false;
|
||||
isC4Planted = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user