Fix ped spawn crash
This commit is contained in:
parent
2ab1d1e735
commit
d7b152a0c7
@ -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
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user