Moves a bunch of libraries to traits
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -10,7 +10,7 @@ extern "C" fn learned_move_new(
|
||||
move_data: ExternPointer<Arc<dyn MoveData>>,
|
||||
learn_method: MoveLearnMethod,
|
||||
) -> IdentifiablePointer<Arc<LearnedMove>> {
|
||||
Arc::new(LearnedMove::new(move_data.as_ref(), learn_method)).into()
|
||||
Arc::new(LearnedMove::new(move_data.as_ref().clone(), learn_method)).into()
|
||||
}
|
||||
|
||||
/// Drops a learned move.
|
||||
|
||||
Reference in New Issue
Block a user