Files
source/Strategic
Marco Antonio J. Costaandmajcosta c6a4fdb393 give the drug item draw an engine it can take by reference
std::uniform_int_distribution::operator() takes its engine by non-const
reference, and the call passes a freshly constructed std::mt19937 temporary.
MSVC binds it anyway; clang-cl reports

  error: no matching function for call to object of type
  'std::uniform_int_distribution<>'
  note: candidate function not viable: expects an lvalue for 1st argument

Naming the engine is enough. Behaviour is unchanged: the engine is still
seeded from std::random_device and still discarded after the single draw.
2026-07-23 19:29:55 -03:00
..
2025-12-09 00:35:18 +02:00
2025-12-03 23:52:05 +02:00
2025-12-03 23:52:05 +02:00
2026-01-03 17:27:43 +02:00
2025-12-03 23:52:05 +02:00
2025-12-03 23:52:05 +02:00
2024-11-21 21:29:28 +02:00
2026-01-03 17:27:43 +02:00
2024-11-21 21:53:48 +02:00
2025-12-09 00:35:18 +02:00
2023-07-26 13:17:49 +03:00
2026-06-12 15:51:03 +03:00
2024-11-20 20:12:05 +02:00
2024-11-20 21:17:19 +02:00
2026-01-03 17:27:43 +02:00
2024-11-30 23:47:00 +02:00
2023-01-03 15:51:48 +02:00