From 38ac5854f4656d8106b5a257d15c696e16014b6b Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 5 May 2013 13:31:27 +0200 Subject: [PATCH] LURE: Fix getNumGroats This fixes bug #3612682 --- engines/lure/scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index df2f06df962..8afdaa5ad1e 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -673,7 +673,7 @@ void Script::barmanServe(uint16 v1, uint16 v2, uint16 v3) { // Stores the current number of groats in the general field void Script::getNumGroats(uint16 v1, uint16 v2, uint16 v3) { - ValueTableData fields = Resources::getReference().fieldList(); + ValueTableData &fields = Resources::getReference().fieldList(); fields.setField(GENERAL, fields.numGroats()); }