From 8e650ce4e9b49ec6f0f135776d4a01d6725769bd Mon Sep 17 00:00:00 2001 From: Enno Date: Sat, 5 Mar 2011 04:49:08 +0100 Subject: [PATCH] an equals operator on these would be neat --- scripts/tests/eressea.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/eressea.lua b/scripts/tests/eressea.lua index 8a0060088..39d881952 100644 --- a/scripts/tests/eressea.lua +++ b/scripts/tests/eressea.lua @@ -192,7 +192,7 @@ function test_snowman() u:add_order("BENUTZEN 1 Schneemann") process_orders() for u2 in r.units do - if u2~=u then + if u2.id~=u.id then assert_equal(u2.race, "snowman") u = nil break