Browse Source

all hunters are cool, not just humars

set_char_exp
andy 2 years ago
parent
commit
17f89182c4
  1. 4
      src/entity/gateway/inmemory.rs

4
src/entity/gateway/inmemory.rs

@ -352,8 +352,8 @@ impl EntityGateway for InMemoryGateway {
async fn set_character_exp(&mut self, char_id: &CharacterEntityId, exp: u32) -> Result<(), GatewayError> {
let mut chars = self.characters.lock().unwrap();
if let Some(coolhumar) = chars.get_mut(char_id) {
coolhumar.exp = exp;
if let Some(character) = chars.get_mut(char_id) {
character.exp = exp;
Ok(())
} else {
Err(GatewayError::Error)

Loading…
Cancel
Save