update script + fix esp crash

This commit is contained in:
nullifiedcat 2017-03-29 09:31:08 +03:00
parent 148e6276cc
commit 690d166a7a
2 changed files with 6 additions and 1 deletions

View File

@ -312,7 +312,8 @@ void ProcessEntity(CachedEntity* ent) {
CachedEntity* weapon = ENTITY(CE_INT(ent, netvar.hActiveWeapon) & 0xFFF);
if (CE_GOOD(weapon)) {
if (show_weapon) {
AddEntityString(ent, std::string(vfunc<const char*(*)(IClientEntity*)>(RAW_ENT(weapon), 398, 0)(RAW_ENT(weapon))));
const char* name = vfunc<const char*(*)(IClientEntity*)>(RAW_ENT(weapon), 398, 0)(RAW_ENT(weapon));
if (name) AddEntityString(ent, std::string(name));
}
}
}

4
update Executable file
View File

@ -0,0 +1,4 @@
git pull origin master && \
git submodule update --remote --recursive && \
make clean && \
make -j4