Add wrapping_add to change_tick (#7146)

# Objective

Fixes #7140


## Solution

As discussed in the issue, added wrapping_add

---
This commit is contained in:
Tirth Patel 2023-01-10 17:48:34 +00:00
parent d03c1a0687
commit a207178344

View File

@ -102,7 +102,7 @@ where
let change_tick = world.change_tick.get_mut();
self.system_meta.last_change_tick = *change_tick;
*change_tick += 1;
*change_tick = change_tick.wrapping_add(1);
world.last_change_tick = saved_last_tick;
}