1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-17 18:54:48 +00:00

added missing override in hyper_function.h

This commit is contained in:
Zeno Rogue 2023-08-16 10:27:27 +02:00
parent 29d50a9f21
commit e3357c9b26

View File

@ -29,7 +29,7 @@ struct function_state : function_state_base<R, Args...> {
function_state_base<R, Args...> *clone() const override { function_state_base<R, Args...> *clone() const override {
return new function_state(*this); return new function_state(*this);
} }
virtual funbase* as_funbase() { virtual funbase* as_funbase() override {
if(std::is_base_of<funbase, T>::value) return (funbase*) (&t_); if(std::is_base_of<funbase, T>::value) return (funbase*) (&t_);
return nullptr; return nullptr;
} }