FFI for Pokemon Party, make Pokemon Party use interior mutability.
This commit is contained in:
@@ -45,7 +45,7 @@ impl BattleParty {
|
||||
}
|
||||
|
||||
/// Gets a Pokemon at an index.
|
||||
pub fn get_pokemon(&self, index: usize) -> &Option<Arc<Pokemon>> {
|
||||
pub fn get_pokemon(&self, index: usize) -> Option<Arc<Pokemon>> {
|
||||
self.party.at(index)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user