Adding default case
This commit is contained in:
		
					parent
					
						
							
								77e5a18784
							
						
					
				
			
			
				commit
				
					
						877e7ad2fa
					
				
			
		
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -119,6 +119,8 @@ namespace character {
 | 
				
			||||||
                case toolsHash:
 | 
					                case toolsHash:
 | 
				
			||||||
                    billy.emplace(static_cast<tools>(value), std::make_unique<Tools>(static_cast<tools>(value)));
 | 
					                    billy.emplace(static_cast<tools>(value), std::make_unique<Tools>(static_cast<tools>(value)));
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                default:
 | 
				
			||||||
 | 
					                    throw std::logic_error("Wrong hash for from_json in BillyObjects::from_json");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue