mirror of
https://github.com/SWG-Source/src.git
synced 2026-07-31 00:15:55 -04:00
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:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user