1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-30 22:17:13 +02:00

Fix bug in entity initialization which was pushing a null pointer on the stack instead of the actual instance.

Player instance initialization was missing.
This commit is contained in:
Sandu Liviu Catalin
2017-02-21 21:57:47 +02:00
parent e7bb68d76c
commit 135484e467
2 changed files with 21 additions and 15 deletions

View File

@ -74,7 +74,7 @@ protected:
/* ----------------------------------------------------------------------------------------
* Default constructor.
*/
BlipInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr)
BlipInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr), mObj()
{
ResetInstance();
}
@ -143,7 +143,7 @@ protected:
/* ----------------------------------------------------------------------------------------
* Default constructor.
*/
CheckpointInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr)
CheckpointInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr), mObj()
{
ResetInstance();
}
@ -207,7 +207,7 @@ protected:
/* ----------------------------------------------------------------------------------------
* Default constructor.
*/
KeybindInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr)
KeybindInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr), mObj()
{
ResetInstance();
}
@ -275,7 +275,7 @@ protected:
/* ----------------------------------------------------------------------------------------
* Default constructor.
*/
ObjectInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr)
ObjectInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr), mObj()
{
ResetInstance();
}
@ -340,7 +340,7 @@ protected:
/* ----------------------------------------------------------------------------------------
* Default constructor.
*/
PickupInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr)
PickupInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr), mObj()
{
ResetInstance();
}
@ -407,7 +407,7 @@ protected:
/* ----------------------------------------------------------------------------------------
* Default constructor.
*/
PlayerInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr)
PlayerInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr), mObj()
{
ResetInstance();
}
@ -558,7 +558,7 @@ protected:
/* ----------------------------------------------------------------------------------------
* Default constructor.
*/
VehicleInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr)
VehicleInst() : mID(-1), mFlags(ENF_DEFAULT), mInst(nullptr), mObj()
{
ResetInstance();
}