Changed: database_plr.h sync for number of animal

--HG--
branch : patches-from-atys
Nimetu 5 years ago
parent ae68b543b8
commit 460eb92969

@ -3143,7 +3143,7 @@ void CBankAccessor_PLR::TPACK_ANIMAL::init(ICDBStructNode *parent)
// branch init // 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 ); node = parent->getNode( ICDBStructNode::CTextId(NLMISC::toString("BEAST%u", i)), false );
nlassert(node != NULL); nlassert(node != NULL);

@ -9311,7 +9311,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
private: private:
ICDBStructNode *_BranchNode; ICDBStructNode *_BranchNode;
TBEAST _BEAST[4]; TBEAST _BEAST[7];
public: public:
@ -9325,7 +9325,7 @@ inline void _getProp(const CCDBSynchronised &db, ICDBStructNode *node, NLMISC::C
TBEAST &getBEAST(uint32 index) TBEAST &getBEAST(uint32 index)
{ {
nlassert(index < 4); nlassert(index < 7);
return _BEAST[index]; return _BEAST[index];
} }

Loading…
Cancel
Save