an equals operator on these would be neat

This commit is contained in:
Enno 2011-03-05 04:49:08 +01:00
parent d58d90b853
commit 8e650ce4e9
1 changed files with 1 additions and 1 deletions

View File

@ -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