cPressurePlateHandler: Fix uninitialised variables. (#4047)
This commit is contained in:
parent
10c5c1227e
commit
4b14a5b4c1
@ -27,8 +27,8 @@ public:
|
|||||||
{
|
{
|
||||||
UNUSED(a_Meta);
|
UNUSED(a_Meta);
|
||||||
|
|
||||||
unsigned int NumberOfEntities;
|
unsigned int NumberOfEntities = 0;
|
||||||
bool FoundPlayer;
|
bool FoundPlayer = false;
|
||||||
a_World.ForEachEntityInBox(cBoundingBox(Vector3d(0.5, 0, 0.5) + a_Position, 0.5, 0.5), [&](cEntity & a_Entity)
|
a_World.ForEachEntityInBox(cBoundingBox(Vector3d(0.5, 0, 0.5) + a_Position, 0.5, 0.5), [&](cEntity & a_Entity)
|
||||||
{
|
{
|
||||||
if (a_Entity.IsPlayer())
|
if (a_Entity.IsPlayer())
|
||||||
|
Loading…
Reference in New Issue
Block a user