Hey Gang-

Sometime back I removed all my get_room_index (and others) with an array.
(pRoomArray).

However, I have *very* high vnums.  So, I've defined a MAX_ROOM at 1500000.
His makes for a large array!

I use pRoomArray[vnum] to quickly and efficiently access room data.

I would like to use this convention while allocating the memory in the array
dynamically (so I only allocate 300k rooms worth, not 1.5m)

Is there someway I can keep my method but gain a better allocation concept?

I don't want to loop through pointers, or vnums, or anything to find a room.
I want to call it out quickly and easily.

All ideas welcome, and I hope I've explained what I'm doing here.

Thanks!

Jason

Reply via email to