This commit is contained in:
aozhiwei 2024-09-10 13:53:11 +08:00
parent 501cbb8f03
commit d3879d4077
2 changed files with 2 additions and 1 deletions

View File

@ -74,6 +74,7 @@
Human::Human():Creature() Human::Human():Creature()
{ {
current_pos_ = std::make_shared<glm::vec3>();
default_weapon.weapon_idx = 0; default_weapon.weapon_idx = 0;
default_weapon.weapon_id = 30102; default_weapon.weapon_id = 30102;
default_weapon.ammo = 1; default_weapon.ammo = 1;

View File

@ -380,6 +380,7 @@ protected:
#ifdef MYDEBUG #ifdef MYDEBUG
std::map<long long, long long> debug_data_; std::map<long long, long long> debug_data_;
#endif #endif
std::shared_ptr<glm::vec3> current_pos_;
private: private:
int socket_handle_ = 0; int socket_handle_ = 0;
@ -404,7 +405,6 @@ private:
long long jump_frameno_ = 0; long long jump_frameno_ = 0;
float old_sync_speed = 0; float old_sync_speed = 0;
std::map<int, long long> attacker_hash_; std::map<int, long long> attacker_hash_;
std::shared_ptr<glm::vec3> current_pos_;
friend class PBUtils; friend class PBUtils;
}; };