diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-09-25 22:41:11 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-09-25 22:41:11 +0200 |
commit | 4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c (patch) | |
tree | 855630a4641f6465424a20ed2cad88c080c1ad8c /src/Simulator | |
parent | BroadcastBlockBreakAnimation and BroadcastBlockEntity use vectors (#4038) (diff) | |
download | cuberite-4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c.tar cuberite-4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c.tar.gz cuberite-4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c.tar.bz2 cuberite-4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c.tar.lz cuberite-4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c.tar.xz cuberite-4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c.tar.zst cuberite-4b14a5b4c1182fddb400476dc5c5b7dcdbd7367c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Simulator/IncrementalRedstoneSimulator/PressurePlateHandler.h | 4 |
1 files 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()) |