(svn r6145) -Codechange: added OrderID to indicate Order indexes out of the pool

This commit is contained in:
truelight
2006-08-26 17:16:51 +00:00
parent b17d389667
commit 43f53ca4fd
3 changed files with 4 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ static Order *AllocateOrder(void)
* TODO - This is just a temporary stage, this will be removed. */
for (order = GetOrder(0); order != NULL; order = (order->index + 1 < GetOrderPoolSize()) ? GetOrder(order->index + 1) : NULL) {
if (!IsValidOrder(order)) {
uint index = order->index;
OrderID index = order->index;
memset(order, 0, sizeof(*order));
order->index = index;