diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2021-01-31 20:44:39 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2021-01-31 20:44:39 +0100 |
commit | 7a3b80a9b7f414967fe59f89ab0fe5416735babe (patch) | |
tree | a84fb5e1dbdb00959d6916594d43b9c82c9bef23 /src/core/Pools.cpp | |
parent | 5de4e88d7a7637d9e0f806855a8f0d66b4f2f276 (diff) |
First batch of fixes (CallAndMessage)
Diffstat (limited to 'src/core/Pools.cpp')
-rw-r--r-- | src/core/Pools.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/Pools.cpp b/src/core/Pools.cpp index 39cfb1d4..54055243 100644 --- a/src/core/Pools.cpp +++ b/src/core/Pools.cpp @@ -144,8 +144,11 @@ INITSAVEBUF pVehicle = new(slot) CBoat(model, RANDOM_VEHICLE); else if (type == VEHICLE_TYPE_CAR) pVehicle = new(slot) CAutomobile(model, RANDOM_VEHICLE); - else + else { assert(0); + debug("This shouldn't happen"); + return; + } --CCarCtrl::NumRandomCars; pVehicle->Load(buf); CWorld::Add(pVehicle); @@ -518,8 +521,11 @@ INITSAVEBUF if (pedtype == PEDTYPE_PLAYER1) pPed = new(ref) CPlayerPed(); - else + else { assert(0); + debug("This shouldn't happen"); + return; + } pPed->Load(buf); if (pedtype == PEDTYPE_PLAYER1) { |