Creating Creatures


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Jeremy on April 19, 2001 at 23:19:33:

When a creature is created, I create a temporary creature of the appropriate type in my ecosystem and then add the address of that creature to a queue of creature pointers. When the create function ends, the temporary creature goes out of scope, so the pointer stored in the queue now points to garbage. I can't think of anyway around this right now. Can anybody help me out?


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]