Fixed ComponentWrapper string scope error

This commit is contained in:
sippeangelo
2015-12-02 15:37:20 +01:00
parent 61b7aa6b3d
commit c7430a9338
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -22,8 +22,7 @@ BOOST_AUTO_TEST_CASE(ComponentPoolTest)
int i = 0;
for (auto& c : pool) {
BOOST_CHECK(c.EntityID == i);
int field = c.Property<int>("Field");
BOOST_CHECK(field == i);
BOOST_CHECK((int)c["Field"] == i);
i++;
}
}