Break after adding 1 ware

This commit is contained in:
Samuel Oberhofer 2022-05-23 21:52:36 +02:00
parent 2257c92d2b
commit 5c49114534
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ void Sortiment::addWare(Ware *ware) {
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
if (this->waren[i] == nullptr) { if (this->waren[i] == nullptr) {
this->waren[i] = ware; this->waren[i] = ware;
break;
} }
} }
} }