Commit 866229e4 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Use a temporary variable because of a bug in valac

parent 57ff7c84
......@@ -128,7 +128,8 @@ namespace Tarot {
private void update_events () {
size_t i = 0;
foreach (var e in my_game.get_alloc ()) {
var game = my_game.get_alloc ();
foreach (var e in game) {
if (i >= n_events_pulled) {
m_queue.enqueue (e);
n_events_pulled++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment