Fix ped spawn crash

This commit is contained in:
Grinch_ 2021-11-21 02:51:14 +06:00
parent 2ab1d1e735
commit d7b152a0c7
2 changed files with 3 additions and 3 deletions

View File

@ -157,9 +157,9 @@ void Hook::ShowMouse(bool state)
{ {
// Disable player controls for controllers // Disable player controls for controllers
bool bMouseDisabled = false; bool bMouseDisabled = false;
bool isController = patch::Get<BYTE>(BY_GAME(0x5F03D8, 0x86968B, 0xBA6818)); bool isController = patch::Get<BYTE>(BY_GAME(0xBA6818, 0x86968B, 0x5F03D8));
#ifdef GTASA #ifdef GTA3
isController = !isController; isController = !isController;
#endif #endif

View File

@ -100,7 +100,7 @@ void Ped::SpawnPed(std::string& cat, std::string& name, std::string& model)
// SA has 10 slots // SA has 10 slots
++currentSlot; ++currentSlot;
if (currentSlot > 10) if (currentSlot > 9)
{ {
currentSlot = 1; currentSlot = 1;
} }