(svn r17721) -Codechange: replace a magic number with a constant

This commit is contained in:
rubidium
2009-10-06 17:28:06 +00:00
parent ec3a0dc064
commit 9b94441eb8
2 changed files with 3 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ void CargoList::Append(CargoPacket *cp)
assert(cp != NULL);
for (List::iterator it = packets.begin(); it != packets.end(); it++) {
if ((*it)->SameSource(cp) && (*it)->count + cp->count <= 65535) {
if ((*it)->SameSource(cp) && (*it)->count + cp->count <= CargoPacket::MAX_COUNT) {
(*it)->count += cp->count;
(*it)->feeder_share += cp->feeder_share;
delete cp;