Fixed stupid bug preventing JS ShipGroup from working.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2030 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
12e982fa06
commit
18abac1954
@ -97,7 +97,7 @@ static JSFunctionSpec sShipGroupMethods[] =
|
||||
};
|
||||
|
||||
|
||||
void InitOOShipGroup(JSContext *context, JSObject *global)
|
||||
void InitOOJSShipGroup(JSContext *context, JSObject *global)
|
||||
{
|
||||
sShipGroupPrototype = JS_InitClass(context, global, NULL, &sShipGroupClass.base, ShipGroupConstruct, 0, sShipGroupProperties, sShipGroupMethods, NULL, NULL);
|
||||
JSRegisterObjectConverter(&sShipGroupClass.base, JSBasicPrivateObjectConverter);
|
||||
|
@ -54,6 +54,7 @@ MA 02110-1301, USA.
|
||||
#import "OOJSSpecialFunctions.h"
|
||||
#import "OOJSSystemInfo.h"
|
||||
#import "OOJSEquipmentInfo.h"
|
||||
#import "OOJSShipGroup.h"
|
||||
|
||||
#import <stdlib.h>
|
||||
|
||||
@ -261,6 +262,7 @@ static void ReportJSError(JSContext *context, const char *message, JSErrorReport
|
||||
InitOOJSSpecialFunctions(mainContext, globalObject);
|
||||
InitOOJSSystemInfo(mainContext, globalObject);
|
||||
InitOOJSEquipmentInfo(mainContext, globalObject);
|
||||
InitOOJSShipGroup(mainContext, globalObject);
|
||||
|
||||
sSharedEngine = self;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user