Heya all, i'm trying to pass a structure through a copy constructor, but the class can not seem to see the structure. any ideas on why?, the structure is global before the class file is called(i know, i know.. bad me for having a global struct)
s_iChrStat <-- character stats
the class, i cut out alot of usless garbage, this is basically where my problem is.Code:class CBasePlayer { CBasePlayer(); CBasePLayer(s_iChrStat stats); private: s_iChrStat s_charstat; };
then this is the .cpp file.Code:CBasePlayer::CBasePLayer() { } CBasePlayer::CBasePLayer(s_iChrStat stats): s_charstat(stats) { cout << "Base Player copy constuctor..\n"; }



LinkBack URL
About LinkBacks



