aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 3a7ffd0..174a673 100644
--- a/README.md
+++ b/README.md
@@ -227,7 +227,7 @@ class CollisionSystem : public System<CollisionSystem> {
for (Entity left_entity : es.entities_with_components(left_position)) {
for (Entity right_entity : es.entities_with_components(right_position)) {
if (collide(left_position, right_position)) {
- events->emit<Collision>(left_entity, right_entity);
+ events.emit<Collision>(left_entity, right_entity);
}
}
}