aboutsummaryrefslogtreecommitdiffstats
path: root/entityx/3rdparty/simplesignal.h
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-09-07 13:38:56 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-09-07 13:38:56 -0400
commitc3e164c6845b9b32f132aa37cc9707acba0d9eff (patch)
tree549b66f19066863628d74860145a07f6b04ad8ba /entityx/3rdparty/simplesignal.h
parent643e94897ba5fab0570d118a7aafc7772949d4e3 (diff)
event consumption work
Diffstat (limited to 'entityx/3rdparty/simplesignal.h')
-rw-r--r--entityx/3rdparty/simplesignal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/entityx/3rdparty/simplesignal.h b/entityx/3rdparty/simplesignal.h
index 3c60273..864c1c6 100644
--- a/entityx/3rdparty/simplesignal.h
+++ b/entityx/3rdparty/simplesignal.h
@@ -26,9 +26,9 @@ template <typename Result>
struct CollectorLast {
typedef Result CollectorResult;
explicit CollectorLast() : last_() {}
- inline bool operator()(Result r) {
+ inline CollectorResult operator()(Result r) {
last_ = r;
- return true;
+ return last_;
}
CollectorResult result() { return last_; }