Index: src/scicore/resource.c
===================================================================
--- src/scicore/resource.c	(revision 1509)
+++ src/scicore/resource.c	(working copy)
@@ -573,7 +573,7 @@
 }
 
 void
-scir_unlock_resource(resource_mgr_t *mgr, resource_t *res, int resnum, int restype)
+scir_unlock_resource(resource_mgr_t *mgr, resource_t *res, int restype, int resnum)
 {
 	if (!res) {
 		sciprintf("Resmgr: Warning: Attempt to unlock non-existant"
Index: src/engine/kscripts.c
===================================================================
--- src/engine/kscripts.c	(revision 1509)
+++ src/engine/kscripts.c	(working copy)
@@ -153,7 +153,7 @@
 		break;
 	case 0 :
 		which = scir_find_resource(s->resmgr, restype, resnr, 0);
-		scir_unlock_resource(s->resmgr, which, resnr, restype);
+		scir_unlock_resource(s->resmgr, which, restype, resnr);
 		break;
 	}
 }
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 1521)
+++ ChangeLog	(working copy)
@@ -1,5 +1,8 @@
 2006-02-05  Christoph Reichenbach  <reichenb@colorado.edu>
 
+	* src/scicore/resource.c (scir_unlock_resource): Swapped
+	parameters to correspond to prototype.
+
 	* src/sound/pcmout_alsa.c: ALSA pcmout now has a 'device'
 	parameter (default is still "hw:0,0")
 
