I find bug in standart addon array<>
code:
class A{
void DO(){
output( "A::DO()" );
}
}
class B : A{
void DO(){
output( "B::DO()" );
}
}
B b;
array<A> arr;
arr.insertLast( b );
arr[0].DO();
this script show "A::DO()"
class A{
void DO(){
output( "A::DO()" );
}
}
class B : A{
void DO(){
output( "B::DO()" );
}
}
B b;
array<A> arr;
arr.insertLast( b );
arr[0].DO();
Remember to mark someones post as helpful if you found it so.
Journal:
http://www.gamedev.net/blog/908-xxchesters-blog/
Portfolio:
http://www.BrandonMcCulligh.ca
Company:
All functions are virtual in angelscript, so the override is implicit.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game