diff --git a/source/ps/GameAttributes.cpp b/source/ps/GameAttributes.cpp index 8280f348ac..32ec643997 100644 --- a/source/ps/GameAttributes.cpp +++ b/source/ps/GameAttributes.cpp @@ -263,7 +263,7 @@ void CGameAttributes::ScriptingInit() PlayerSlotArray_JS::Construct, 0, NULL, NULL, NULL, NULL); AddMethod("getOpenSlot", 0); - AddProperty(L"slots", (GetFn)&CGameAttributes::JSI_GetPlayerSlots); + AddProperty(L"slots", &CGameAttributes::JSI_GetPlayerSlots); CJSObject::ScriptingInit("GameAttributes"); } @@ -279,7 +279,7 @@ jsval CGameAttributes::JSI_GetOpenSlot(JSContext* UNUSED(cx), uintN UNUSED(argc) return JSVAL_NULL; } -jsval CGameAttributes::JSI_GetPlayerSlots() +jsval CGameAttributes::JSI_GetPlayerSlots(JSContext* UNUSED(cx)) { return OBJECT_TO_JSVAL(m_PlayerSlotArrayJS); } diff --git a/source/ps/GameAttributes.h b/source/ps/GameAttributes.h index 32b470c60f..4a50070975 100644 --- a/source/ps/GameAttributes.h +++ b/source/ps/GameAttributes.h @@ -143,7 +143,7 @@ private: virtual void Update(CStrW name, ISynchedJSProperty *attrib); static void OnNumSlotsUpdate(CSynchedJSObjectBase *owner); - jsval JSI_GetPlayerSlots(); + jsval JSI_GetPlayerSlots(JSContext* cx); jsval JSI_GetOpenSlot(JSContext *cx, uintN argc, jsval *argv); static void ScriptingInit();