From 8327db65b8d64a259ab823abf39a457a626a33eb Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 9 Jun 2012 09:18:17 +0200 Subject: [PATCH] I have a slightly broken version of tolua installed which doesn't compare user types. Working around that bug by comparing integers instead. Sigh. --- scripts/tests/common.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tests/common.lua b/scripts/tests/common.lua index 3e17d3414..79f4e0d1b 100644 --- a/scripts/tests/common.lua +++ b/scripts/tests/common.lua @@ -936,7 +936,7 @@ function test_bug_1922() u:add_order("NACH O") u:set_skill("sailing",120) -- supadupa captain able to drive a trireme process_orders() - assert_not_equal(r2,u.region) -- unit should not reach r2. + assert_not_equal(r2.id, u.region.id) -- unit should not reach r2. end @@ -956,7 +956,7 @@ function test_bug_1922_by_foot() u:add_order("NACH O") process_orders() - assert_not_equal(r2,u.region) -- unit should not reach r2. + assert_not_equal(r2.id, u.region.id) -- unit should not reach r2. end