1
0

cPressurePlateHandler: Fix uninitialised variables. (#4047)

This commit is contained in:
peterbell10 2017-09-25 21:41:11 +01:00 committed by Alexander Harkness
parent 10c5c1227e
commit 4b14a5b4c1

View File

@ -27,8 +27,8 @@ public:
{
UNUSED(a_Meta);
unsigned int NumberOfEntities;
bool FoundPlayer;
unsigned int NumberOfEntities = 0;
bool FoundPlayer = false;
a_World.ForEachEntityInBox(cBoundingBox(Vector3d(0.5, 0, 0.5) + a_Position, 0.5, 0.5), [&](cEntity & a_Entity)
{
if (a_Entity.IsPlayer())