diff options
author | Israël Hallé <israel.halle@shopify.com> | 2014-07-09 23:09:24 -0400 |
---|---|---|
committer | Israël Hallé <israel.halle@shopify.com> | 2014-07-09 23:09:24 -0400 |
commit | 34a9e088b0c109ba65bfc777273d4c37a07e1bc6 (patch) | |
tree | ff90d9125ca5cb27bf31d4f11baa3cee212b84a2 | |
parent | 1b878b7ff1f003e558baafe1b58ddea10d8c060d (diff) |
Fix VS2013 compiler error in Entity_test.cc
-rwxr-xr-x[-rw-r--r--] | entityx/Entity_test.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/entityx/Entity_test.cc b/entityx/Entity_test.cc index 1c47453..ee1ccac 100644..100755 --- 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> { + + ComponentAddedEventReceiver() + : position_events(0), direction_events(0) {} + void receive(const ComponentAddedEvent<Position> &event) { auto p = event.component; float n = static_cast<float>(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; |