From 34a9e088b0c109ba65bfc777273d4c37a07e1bc6 Mon Sep 17 00:00:00 2001 From: Israël Hallé Date: Wed, 9 Jul 2014 23:09:24 -0400 Subject: Fix VS2013 compiler error in Entity_test.cc --- entityx/Entity_test.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) mode change 100644 => 100755 entityx/Entity_test.cc diff --git a/entityx/Entity_test.cc b/entityx/Entity_test.cc old mode 100644 new mode 100755 index 1c47453..ee1ccac --- a/entityx/Entity_test.cc +++ b/entityx/Entity_test.cc @@ -337,6 +337,10 @@ TEST_CASE_METHOD(EntityManagerFixture, "TestEntityDestroyedEvent") { TEST_CASE_METHOD(EntityManagerFixture, "TestComponentAddedEvent") { struct ComponentAddedEventReceiver : public Receiver { + + ComponentAddedEventReceiver() + : position_events(0), direction_events(0) {} + void receive(const ComponentAddedEvent &event) { auto p = event.component; float n = static_cast(position_events); @@ -353,8 +357,8 @@ TEST_CASE_METHOD(EntityManagerFixture, "TestComponentAddedEvent") { direction_events++; } - int position_events = 0; - int direction_events = 0; + int position_events; + int direction_events; }; ComponentAddedEventReceiver receiver; -- cgit v1.2.3