Jump to content

objects/longobject.c 969 bad argument to internal fuction


Recommended Posts

0211 16:35:19719 :: SystemError
0211 16:35:19719 :: :
0211 16:35:19719 :: ..Objectslongobject.c:969: bad argument to internal function
0211 16:35:19719 ::

0211 16:35:23414 :: Traceback (most recent call last):

0211 16:35:23414 ::   File "game.py", line 791, in RefreshInventory

0211 16:35:23414 ::   File "interfaceModule.py", line 567, in RefreshInventory

0211 16:35:23414 :: AttributeError
0211 16:35:23414 :: :
0211 16:35:23414 :: 'NoneType' object has no attribute 'RefreshQuickSlot'
0211 16:35:23414 ::

0211 16:35:23414 :: Traceback (most recent call last):

0211 16:35:23414 ::   File "game.py", line 791, in RefreshInventory

0211 16:35:23414 ::   File "interfaceModule.py", line 567, in RefreshInventory

0211 16:35:23415 :: AttributeError
0211 16:35:23415 :: :
0211 16:35:23415 :: 'NoneType' object has no attribute 'RefreshQuickSlot'
0211 16:35:23415 ::

 

 

any fix?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I guess you defined something about lenght in PythonUtils.cpp

yes i add this 

bool PyTuple_GetUnsignedLongLong(PyObject* poArgs, int pos, unsigned long long* ret)
{
	if (pos >= PyTuple_Size(poArgs))
		return false;

	PyObject * poItem = PyTuple_GetItem(poArgs, pos);
	
	if (!poItem)
		return false;
	
	*ret = PyLong_AsUnsignedLongLong(poItem);
	return true;
}
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.