1
0
forked from mirrors/0ad

gcc warning fixes

This was SVN commit r702.
This commit is contained in:
Ykkrosh
2004-07-11 12:49:44 +00:00
parent 4c1ef2df21
commit 7bef7160ca
4 changed files with 4 additions and 4 deletions
@@ -107,7 +107,8 @@ JSBool JSI_Entity::construct( JSContext* cx, JSObject* obj, unsigned int argc, j
}
HEntity* handle = new HEntity( g_EntityManager.create( baseEntity, position, orientation ) );
(*handle)->dispatch( &CMessage( CMessage::EMSG_INIT ) );
CMessage message( CMessage::EMSG_INIT );
(*handle)->dispatch( &message );
JSObject* entity = JS_NewObject( cx, &JSI_Entity::JSI_class, NULL, NULL );
JS_SetPrivate( cx, entity, handle );
*rval = OBJECT_TO_JSVAL( entity );