Welcome to hackvshack.net Forum!
Download Free HvH CS2/CS:GO Cheats, CFG, LUA/JS Scripts, and More!
Register

C++ fix rare crash at inject in supremacy

potroshitel

Master HvHer
User ID:
63477
Messages:
15
Reactions:
848
Badges:
8
REP:
−0/1+
Level:
87
colorpicker.cpp -
C++:
Expand Collapse Copy
texture = g_csgo.m_surface->CreateNewTextureID( true );

change to
C++:
Expand Collapse Copy
    if ( !texture )
        texture = g_csgo.m_surface->CreateNewTextureID( true );

The crash happens because CreateNewTextureID(true) is called every time the code runs, creating a new texture ID repeatedly. This can eventually exhaust or corrupt the Surface texture resources, causing the game to crash.
 

Who has read this thread (Total: 0) in last 1 hours View details