UDP PriorityQueue : Provided this int is a number of bytes and not a number of slots, this should be more proper as the size of a pointer is always 4 bytes

This commit is contained in:
DarthArgus
2015-10-13 10:52:49 -05:00
parent e4dce76620
commit e62615f94e
+1 -1
View File
@@ -77,7 +77,7 @@ template<typename T, typename P> PriorityQueue<T, P>::PriorityQueue(int queueSiz
mQueueEnd = 0;
mQueueSize = queueSize;
mQueue = new QueueEntry[mQueueSize];
memset(mQueue, 0, sizeof(mQueue));
memset(mQueue, 0, mQueueSize);
}
template<typename T, typename P> PriorityQueue<T, P>::~PriorityQueue()