all hunters are cool, not just humars
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:
parent
9fb2da6518
commit
17f89182c4
@ -352,8 +352,8 @@ impl EntityGateway for InMemoryGateway {
|
|||||||
|
|
||||||
async fn set_character_exp(&mut self, char_id: &CharacterEntityId, exp: u32) -> Result<(), GatewayError> {
|
async fn set_character_exp(&mut self, char_id: &CharacterEntityId, exp: u32) -> Result<(), GatewayError> {
|
||||||
let mut chars = self.characters.lock().unwrap();
|
let mut chars = self.characters.lock().unwrap();
|
||||||
if let Some(coolhumar) = chars.get_mut(char_id) {
|
if let Some(character) = chars.get_mut(char_id) {
|
||||||
coolhumar.exp = exp;
|
character.exp = exp;
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
Err(GatewayError::Error)
|
Err(GatewayError::Error)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user