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:
Jens Ayton 2009-02-06 16:51:39 +00:00
parent 12e982fa06
commit 18abac1954
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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;