From 4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Mon, 25 Sep 2017 21:41:11 +0100 Subject: cPressurePlateHandler: Fix uninitialised variables. (#4047) --- src/Simulator/IncrementalRedstoneSimulator/PressurePlateHandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Simulator/IncrementalRedstoneSimulator/PressurePlateHandler.h b/src/Simulator/IncrementalRedstoneSimulator/PressurePlateHandler.h index 63add8982..22cfc17f9 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/PressurePlateHandler.h +++ b/src/Simulator/IncrementalRedstoneSimulator/PressurePlateHandler.h @@ -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()) -- cgit v1.2.3