mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-04 11:37:55 +00:00
tour:: slide_backup with 1 parameter
This commit is contained in:
2
tour.cpp
2
tour.cpp
@@ -81,6 +81,8 @@ template<class T, class U> void slide_backup(T& what, U value) {
|
||||
restorers.push_back([&what, backup] { what = backup; });
|
||||
what = value;
|
||||
}
|
||||
|
||||
template<class T> void slide_backup(T& what) { slide_backup(what, what); }
|
||||
#endif
|
||||
|
||||
EX void on_restore(const reaction_t& t) {
|
||||
|
Reference in New Issue
Block a user