Browse Source

Deference pointer

Michael Ragazzon 6 years ago
parent
commit
d7e28a9bcd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Core/Lua/EventParametersProxy.cpp

+ 1 - 1
Source/Core/Lua/EventParametersProxy.cpp

@@ -74,7 +74,7 @@ int EventParametersProxy__pairs(lua_State* L)
     if((*pindex) == -1)
     if((*pindex) == -1)
         *pindex = 0;
         *pindex = 0;
 	const Dictionary& attributes = *obj->owner->GetParameters();
 	const Dictionary& attributes = *obj->owner->GetParameters();
-    if(pindex >= 0 && *pindex < (int)attributes.size())
+    if(*pindex >= 0 && *pindex < (int)attributes.size())
     {
     {
 		const String& key = attributes.container()[*pindex].first;
 		const String& key = attributes.container()[*pindex].first;
 		const Variant* value = &attributes.container()[*pindex].second;
 		const Variant* value = &attributes.container()[*pindex].second;