[Weapon] Quick fix for sentry crash, icons are still shifted

This commit is contained in:
momo5502 2017-02-06 13:32:30 +01:00
parent 732202606d
commit 4a65974901

View File

@ -375,9 +375,12 @@ namespace Components
Utils::Hook::Set(0x59C095, cg_weaponsStaticArray); Utils::Hook::Set(0x59C095, cg_weaponsStaticArray);
Utils::Hook::Set(0x59C09D, cg_weaponsStaticArray); Utils::Hook::Set(0x59C09D, cg_weaponsStaticArray);
static int unknownMaterialArray[WEAPON_LIMIT]; // TODO: Check the offsets, icons are still wrong, but at least crashes are 'fixed'
Utils::Hook::Set(0x4EF619, unknownMaterialArray); static int unknownMaterialArray[WEAPON_LIMIT + 0x10];
Utils::Hook::Set(0x5896AB, unknownMaterialArray); Utils::Hook::Set(0x58D003, unknownMaterialArray);
Utils::Hook::Set(0x58969A, &unknownMaterialArray[0xC]);
Utils::Hook::Set(0x4EF619, &unknownMaterialArray[0x10]);
Utils::Hook::Set(0x5896AB, &unknownMaterialArray[0x10]);
// Has to do with fx, but somehow lies within the material array // Has to do with fx, but somehow lies within the material array
//Utils::Hook::Set(0x402069, unknownArray); //Utils::Hook::Set(0x402069, unknownArray);