mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
use cast instead of as
This commit is contained in:
parent
a399aba66a
commit
1919f38b09
1 changed files with 2 additions and 2 deletions
|
@ -108,8 +108,7 @@ impl ComponentBuffer {
|
|||
});
|
||||
let com = Box::leak(Box::new(com));
|
||||
let index = self.component_list.len();
|
||||
self.component_list
|
||||
.push(com as *mut C as *mut ComponentData);
|
||||
self.component_list.push((com as *mut C).cast());
|
||||
while self.entity_entry.len() <= entry {
|
||||
self.entity_entry.push(self.end)
|
||||
}
|
||||
|
@ -119,6 +118,7 @@ impl ComponentBuffer {
|
|||
{
|
||||
off = next
|
||||
}
|
||||
self.entity_entry[entry] = off;
|
||||
while self.next.len() <= off {
|
||||
self.next.push(self.end)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue