aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Thomas <alec@swapoff.org>2014-12-15 10:00:48 +1100
committerAlec Thomas <alec@swapoff.org>2014-12-15 10:00:48 +1100
commitb12246386b724c08d5d67322bb9138d1e79d12ca (patch)
tree0d4e724de293b48e9dea9826ff166a266b70c2a3
parent8a5dc45b955199bc9b0f38ab0f7bad0a8810e196 (diff)
parentcf472895b2f3a81812f84c0d2073e4b750652a74 (diff)
Merge pull request #72 from eco/patch-1
Don't use dereference operator in events example
-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);
}
}
}