A lot more work on a bunch of different parts of the system.
This commit is contained in:
@@ -29,12 +29,12 @@ ffi! {
|
||||
let v = slice::from_raw_parts(flags, flags_length as usize).to_vec();
|
||||
let mut flags_map = HashSet::new();
|
||||
for flag in v {
|
||||
flags_map.insert(CStr::from_ptr(flag).to_str().unwrap().to_string());
|
||||
flags_map.insert(CStr::from_ptr(flag).to_str().unwrap().into());
|
||||
}
|
||||
|
||||
let handle = ItemHandle::alloc(ItemC {
|
||||
inner: thread_bound::DeferredCleanup::new(Item::new(
|
||||
CStr::from_ptr(name).to_str().unwrap(),
|
||||
&CStr::from_ptr(name).to_str().unwrap().into(),
|
||||
std::mem::transmute(category),
|
||||
std::mem::transmute(battle_category),
|
||||
price,
|
||||
|
||||
Reference in New Issue
Block a user