As a work around for now, you could use the
exist functions for that particular object/vector etc..
for instance:
int obj = 1;
while( dbObjectExist( obj ) ) ++obj;
dbLoadObject( "mymodel.x", obj );
A little word of warning when using this method, you must use the new object number immediately after finding it otherwise you will get errors.
e.g.
int obj = 1;
int obj2 = 1;
while( dbObjectExist( obj ) ) ++obj;
while( dbObjectExist( obj2 ) ) ++obj2;
dbLoadObject( "mymodel.x", obj );
dbLoadObject( "mymodel2.x", obj2 );
The above code will cause an error because obj and obj2 will have the same number because both are free at the time of finding a free number in the while loop.
So to make the above code work you would need to do this.
int obj = 1;
int obj2 = 1;
while( dbObjectExist( obj ) ) ++obj;
dbLoadObject( "mymodel.x", obj );
while( dbObjectExist( obj2 ) ) ++obj2;
dbLoadObject( "mymodel2.x", obj2 );
Or you could create your own
load object function that finds a free index, loads the model and then returns the object index.
The Sun is trying to kill me!