[Weapon] Fix sentry icon

This commit is contained in:
momo5502 2017-02-06 15:23:29 +01:00
parent 671a0b276d
commit 62edf9f7cf

View File

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