Adding the max number of objects allowed
This commit is contained in:
parent
e575a51284
commit
f245f84601
2 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ namespace character {
|
|||
|
||||
|
||||
bool BillyObjects::insert_object(CharacterSheet &sheet, const billyEnums objType) noexcept {
|
||||
if (sheet.objects.size() < 3) {
|
||||
if (sheet.objects.size() < max_obj) {
|
||||
sheet.objects.emplace(objType,
|
||||
std::visit(overloaded{
|
||||
[](const weapons &arg) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue