aboutsummaryrefslogtreecommitdiffstats
path: root/entityx/3rdparty/simplesignal.h
diff options
context:
space:
mode:
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_; }