X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Frollback.h;h=1d9949d1520676094d5c548dc0a9dc3de8ee5f26;hb=4b553ece09908dfdee59e9841fdc9420350eda9f;hp=a05ef8b78c80647681c8b9d3325d402963ed2e40;hpb=ef100f12a1346f7bfd2a05dc606cb22e97179c02;p=minetest.git diff --git a/src/rollback.h b/src/rollback.h index a05ef8b78..1d9949d15 100644 --- a/src/rollback.h +++ b/src/rollback.h @@ -17,8 +17,7 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef ROLLBACK_HEADER -#define ROLLBACK_HEADER +#pragma once #include #include "irr_v3d.h" @@ -80,10 +79,10 @@ class RollbackManager: public IRollbackManager time_t suspect_t, v3s16 action_p, time_t action_t); - IGameDef * gamedef; + IGameDef *gamedef = nullptr; std::string current_actor; - bool current_actor_is_guess; + bool current_actor_is_guess = false; std::list action_todisk_buffer; std::list action_latest_buffer; @@ -103,5 +102,3 @@ class RollbackManager: public IRollbackManager std::vector knownActors; std::vector knownNodes; }; - -#endif