summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/resources.esp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/resources.esp b/services/resources.esp
index e7fd164c34..b5c4bd3b3d 100644
--- a/services/resources.esp
+++ b/services/resources.esp
@@ -52,6 +52,7 @@ function _resourcesCreate()
/* Save the resource and its type */
r.resource = resource;
r.type = type;
+ r.id = this.resourceList.id;
/* Add this resource to the list */
this.resourceList[this.resourceList.id] = r;
@@ -110,7 +111,7 @@ function _resourcesCreate()
if (r.type == type)
{
/* Yup, this is the one they want. */
- return resourceId;
+ return r.id;
}
}
}