PsychoBoy
Member
|
Memx not accessible
Hey all, it was planned that Memx methods are not accessible ?
For example I need to check what was the last added object:
Code:
Object *c = &ObjContainer.last();
Error occurs:
Error 1 error C2247: 'EE::Memx<TYPE>::last' not accessible because 'EE::Game::ObjMemx<TYPE>' uses 'private' to inherit from 'EE::Memx<TYPE>'
If so, any other way to do that?
E: Sorry wrong section :F
(This post was last modified: 02-22-2012 05:29 AM by PsychoBoy.)
|
|
02-22-2012 05:26 AM |
|
Esenthel
Administrator
|
RE: Memx not accessible
you should not rely on last element, when adding objects you should remember their pointer that is returned by World.objCreateNear
|
|
02-22-2012 11:14 AM |
|
PsychoBoy
Member
|
RE: Memx not accessible
Yes, already made it this way but I was wondering if there is other way, ty for clearing this out
(This post was last modified: 02-22-2012 11:33 AM by PsychoBoy.)
|
|
02-22-2012 11:32 AM |
|