From 6ff4dd81df52b4a2ce3e098ee13e3c85d4a74998 Mon Sep 17 00:00:00 2001 From: pauldubois Date: Mon, 10 Mar 2008 03:13:19 +0000 Subject: 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 --- crawl-ref/source/clua.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/clua.cc') 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); -- cgit v1.2.3-54-g00ecf