@@ -168,8 +168,8 @@ Offset UnitMotionPredictor::GetOffset(
168168
169169 for (int32_t i = 0 ; i < _unitsCount; ++i)
170170 {
171- if (_unitIdAndTypes.items [i].unitId == ( uint16_t ) unitId &&
172- _unitIdAndTypes.items [i].unitType == (uint16_t )unitType)
171+ if (_unitIdAndTypes.items [i].unitId == unitId &&
172+ _unitIdAndTypes.items [i].unitType == (uint32_t )unitType)
173173 {
174174 _unitMotions.items [i].lastUsedFrame = _frame;
175175 unitIndex = i;
@@ -182,8 +182,8 @@ Offset UnitMotionPredictor::GetOffset(
182182 if (_unitsCount < (int32_t )_unitIdAndTypes.capacity )
183183 {
184184 unitIndex = _unitsCount++;
185- _unitIdAndTypes.items [unitIndex].unitId = ( uint16_t ) unitId;
186- _unitIdAndTypes.items [unitIndex].unitType = (uint16_t )unitType;
185+ _unitIdAndTypes.items [unitIndex].unitId = unitId;
186+ _unitIdAndTypes.items [unitIndex].unitType = (uint32_t )unitType;
187187 _unitMotions.items [unitIndex] = { };
188188 _unitMotions.items [unitIndex].lastUsedFrame = _frame;
189189 }
@@ -212,8 +212,8 @@ void UnitMotionPredictor::SetUnitScreenPos(
212212
213213 for (int32_t unitIndex = 0 ; unitIndex < _unitsCount; ++unitIndex)
214214 {
215- if (_unitIdAndTypes.items [unitIndex].unitId == ( uint16_t ) unitId &&
216- _unitIdAndTypes.items [unitIndex].unitType == (uint16_t )unitType)
215+ if (_unitIdAndTypes.items [unitIndex].unitId == unitId &&
216+ _unitIdAndTypes.items [unitIndex].unitType == (uint32_t )unitType)
217217 {
218218 _unitScreenPositions.items [unitIndex] = { x, y };
219219 break ;
0 commit comments