Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
blackjack sample: use vector instead of shared pointer for array
  • Loading branch information
0x17de committed Oct 29, 2018
commit 8ced797a5b033d208a27176efe22fb12818f40dd
3 changes: 1 addition & 2 deletions Release/samples/BlackJack/BlackJack_Server/Table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,7 @@ void DealerTable::FillShoe(size_t decks)
//
// Stack the decks.
//
std::shared_ptr<int> ss(new int[decks * 52]);
auto shoe = ss.get();
std::vector<int> shoe(decks * 52);

for (size_t d = 0; d < decks ; d++)
{
Expand Down