Start first RPC id at 1 rather than 0

This caused an issue in the JS
This commit is contained in:
Scott Kyle 2015-10-07 20:40:51 -07:00
parent f5551ffcae
commit 0ed5ba2d8e
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ static JSGlobalContextRef s_context;
}
+ (RPCObjectID)storeObject:(JSObjectRef)object {
static RPCObjectID s_next_id = 0;
static RPCObjectID s_next_id = 1;
RPCObjectID next_id = s_next_id++;
JSValueProtect(s_context, object);
s_objects[next_id] = object;