A minor change to multilimit.cpp

For code related discussions and questions
Post Reply
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base
Contact:

A minor change to multilimit.cpp

Post by Goth Zagog-Thou »

Howdy folks. I know it's been a while since I posted here on the forums.

This is to address 'Too many structure stats' assertions in the log.

multilimit.cpp: 370

Code: Select all

// Prepare chunk
	ASSERT(numStructureStats < 512, "Too many structure stats"); // orig UBYTE_MAX
	for (i = 0; i < numStructureStats; i++)
	{
		if (asStructLimits[0][i].limit != LOTS_OF)
		{
			ASSERT(idx < numchanges, "Bad number of changed limits");
			pEntry[idx].id		= i;
			pEntry[idx].limit	= asStructLimits[0][i].limit;
			idx++;
		}
	}
I hope this is useful. :)
Post Reply