Skip to content

Commit 68939f4

Browse files
committed
Ship::addCargo - vector appended with push_back instead of emplace_back
1 parent 113b96d commit 68939f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shm/ship.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void Ship::addCargo(Cargo * item)
5757
}
5858
else
5959
{
60-
shipCargo.emplace_back(item);
60+
shipCargo.push_back(item);
6161
}
6262
}
6363

0 commit comments

Comments
 (0)