X-Git-Url: https://git.llucax.com/z.facultad/75.29/susanita.git/blobdiff_plain/3ca0929e3a23301865a192e7cd4e6104724dc4f9..74c50ae54daacf5a14ffe941806f554b50b6f7a8:/src/galeshapley.cpp diff --git a/src/galeshapley.cpp b/src/galeshapley.cpp index 8abb785..613c8b7 100644 --- a/src/galeshapley.cpp +++ b/src/galeshapley.cpp @@ -27,8 +27,9 @@ primera_ronda() if (m.ofertas.empty()) continue; m.ordenar_ofertas(); - m.comprometer_con(*(m.ofertas.front())); + Persona& prometido = *(m.ofertas.front()); m.ofertas.pop_front(); + m.comprometer_con(prometido); } }