Skip to content

Commit

Permalink
change the std::list to std::pair in LiquidPhysicsEngine for now, s…
Browse files Browse the repository at this point in the history
…o one uses them, since they are not compatible with the current standard
  • Loading branch information
Mr-Auto committed Jun 1, 2024
1 parent 9e01388 commit 3d75c03
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/game_api/state_structs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,12 @@ struct LiquidPhysicsEngine
std::list<size_t> unk1; // seams to be empty, or have one element 0?
uint32_t resize_value; // used to resive the arrays?
uint32_t unk3b; // padding probably
std::list<int32_t> liquid_ids;
std::list<int32_t> unknown44; // all of them are -1

// this is actually a pre C++11 version of std::list, which is different from current one!
std::pair<size_t, size_t> liquid_ids; // std::list<int32_t>
// this is actually a pre C++11 version of std::list, which is different from current one!
std::pair<size_t, size_t> unknown44; // std::list<int32_t> all of them are -1

std::list<int32_t>::const_iterator* list_liquid_ids; // list of all iterators of liquid_ids?
int32_t unknown45a; // size related for the array above
int32_t unknown45b; // padding
Expand Down

0 comments on commit 3d75c03

Please sign in to comment.