From a5bb008eb554daf26f55b5fe43b0fa12ffb15973 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 31 Jul 2018 12:19:22 +0800 Subject: *update --- src/lua/graphics/luaopen_Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua/graphics/luaopen_Image.cpp') diff --git a/src/lua/graphics/luaopen_Image.cpp b/src/lua/graphics/luaopen_Image.cpp index 5fc9aea..546e6b1 100644 --- a/src/lua/graphics/luaopen_Image.cpp +++ b/src/lua/graphics/luaopen_Image.cpp @@ -12,7 +12,7 @@ namespace lua static inline Texture* checkTexture(lua_State* L) { Proxy* proxy = (Proxy*)luax_checktype(L, 1, TYPE_IMAGE); - if (proxy != 0 && proxy != nullptr) + if (proxy != nullptr) return (Texture*)proxy->object; return nullptr; } -- cgit v1.1-26-g67d0