Browse Source

fixed typo

Michele Caini 8 years ago
parent
commit
3055da5316
1 changed files with 1 additions and 1 deletions
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -37,7 +37,7 @@ struct Velocity {
 };
 };
 
 
 void update(entt::DefaultRegistry &registry) {
 void update(entt::DefaultRegistry &registry) {
-    auto view = ecs.view<Position, Velocity>();
+    auto view = registry.view<Position, Velocity>();
 
 
     for(auto entity: view) {
     for(auto entity: view) {
         auto &position = view.get<Position>(entity);
         auto &position = view.get<Position>(entity);