Fix IZ races rewarding invalid items

This commit is contained in:
Gent S 2020-12-23 18:18:33 -05:00
parent 82d5455da6
commit 7fe0e19bb0

View File

@ -151,8 +151,9 @@ void RacingManager::racingEnd(CNSocket* sock, CNPacketData* data) {
reward.eIL = 1; reward.eIL = 1;
sItemBase item; sItemBase item;
item.iID = rankRewards->at(rank); // rank scores and rewards line up item.iID = rankRewards->at(rank); // rank scores and rewards line up
item.iType = 0; item.iType = 9;
item.iOpt = 1; item.iOpt = 1;
item.iTimeLimit = 0;
reward.sItem = item; reward.sItem = item;
if (reward.iSlotNum > -1 && reward.sItem.iID != 0) { if (reward.iSlotNum > -1 && reward.sItem.iID != 0) {