Minor performance tweaks
This commit is contained in:
@@ -6,8 +6,8 @@ use std::ptr::drop_in_place;
|
||||
|
||||
/// Instantiates a new Learnable Moves.
|
||||
#[no_mangle]
|
||||
extern "C" fn learnable_moves_new() -> OwnedPtr<Box<dyn LearnableMoves>> {
|
||||
Box::into_raw(Box::new(Box::new(LearnableMovesImpl::new())))
|
||||
extern "C" fn learnable_moves_new(max_level: LevelInt) -> OwnedPtr<Box<dyn LearnableMoves>> {
|
||||
Box::into_raw(Box::new(Box::new(LearnableMovesImpl::new(max_level))))
|
||||
}
|
||||
|
||||
/// drops a learnablemoves struct.
|
||||
|
||||
Reference in New Issue
Block a user