A bunch of fixes and improvements
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -194,7 +194,7 @@ register! {
|
||||
) -> u8 {
|
||||
let name : *mut c_char = env.data().data().get_raw_pointer(name);
|
||||
let name = unsafe { CStr::from_ptr(name) };
|
||||
let key = StringKey::new(&name.to_str().unwrap().clone());
|
||||
let key = StringKey::new(name.to_str().unwrap().into());
|
||||
if pokemon.value_func(&env).unwrap().has_held_item(&key) { 1 } else { 0 }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user