all hunters are cool, not just humars
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
andy 2022-07-18 18:49:43 +00:00
parent 9fb2da6518
commit 17f89182c4

View File

@ -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)