summaryrefslogtreecommitdiff
path: root/game/activityOf.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-16 00:59:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-16 00:59:53 +0000
commit56493c5bdfa181d172acbd56cb69589c28623b47 (patch)
tree11073a4558e6190ed8204eb6d6bdb6028bd40ae3 /game/activityOf.h
parentAdd requires on factory like functions (diff)
downloadilt-56493c5bdfa181d172acbd56cb69589c28623b47.tar.bz2
ilt-56493c5bdfa181d172acbd56cb69589c28623b47.tar.xz
ilt-56493c5bdfa181d172acbd56cb69589c28623b47.zip
Allow activities to be changed when doing them
Diffstat (limited to 'game/activityOf.h')
-rw-r--r--game/activityOf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/activityOf.h b/game/activityOf.h
index a26efd1..c245866 100644
--- a/game/activityOf.h
+++ b/game/activityOf.h
@@ -6,10 +6,10 @@
template<typename T> class Activity::Of : public Activity {
void
- apply(Vehicle * v, TickDuration dur) const override
+ apply(Vehicle * v, TickDuration dur) override
{
if (auto tv = dynamic_cast<Can<T> *>(v)) {
- tv->doActivity(static_cast<const T *>(this), dur);
+ tv->doActivity(static_cast<T *>(this), dur);
}
}
};