diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-10 03:13:19 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-03-10 03:13:19 +0000 |
commit | 6ff4dd81df52b4a2ce3e098ee13e3c85d4a74998 (patch) | |
tree | 59a20b31eaa5f27b10c07ac0744ca0ac5e828a36 /crawl-ref | |
parent | 2c9ff2b332153b4350b34db474ba05a4bdd97400 (diff) | |
download | crawl-ref-6ff4dd81df52b4a2ce3e098ee13e3c85d4a74998.tar.gz crawl-ref-6ff4dd81df52b4a2ce3e098ee13e3c85d4a74998.zip |
Fix bug caught by MSVC compiler.
(!expr == foo) is not the same as (expr != foo)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3569 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/clua.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index d132023f9d..70755d6773 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -1805,7 +1805,7 @@ static int crawl_bindkey(lua_State *ls) s = lua_tostring(ls, 1); } - if (!s || !lua_isfunction(ls, 2) || !lua_gettop(ls) == 2) + if (!s || !lua_isfunction(ls, 2) || lua_gettop(ls) != 2) return (0); lua_pushvalue(ls, 2); |