diff --git a/code/ryzom/server/src/entities_game_service/database_plr.cpp b/code/ryzom/server/src/entities_game_service/database_plr.cpp index 0b599ddaa..4e76b8aa7 100644 --- a/code/ryzom/server/src/entities_game_service/database_plr.cpp +++ b/code/ryzom/server/src/entities_game_service/database_plr.cpp @@ -3143,7 +3143,7 @@ void CBankAccessor_PLR::TPACK_ANIMAL::init(ICDBStructNode *parent) // branch init - for (uint i=0; i<4; ++i) + for (uint i=0; i<7; ++i) { node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("BEAST%u", i)), false ); nlassert(node != NULL); diff --git a/code/ryzom/server/src/entities_game_service/database_plr.h b/code/ryzom/server/src/entities_game_service/database_plr.h index 9396fb7b4..fd9b31a8c 100644 --- a/code/ryzom/server/src/entities_game_service/database_plr.h +++ b/code/ryzom/server/src/entities_game_service/database_plr.h @@ -9311,7 +9311,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C private: ICDBStructNode *_BranchNode; - TBEAST _BEAST[4]; + TBEAST _BEAST[7]; public: @@ -9325,7 +9325,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C TBEAST &getBEAST(uint32 index) { - nlassert(index < 4); + nlassert(index < 7); return _BEAST[index]; }