Pink Petal Games
Game Discussion => General Discussion & Download => Topic started by: xorgroth on May 10, 2010, 02:06:21 AM
-
Just curious if anyone has any idea what would case this error:
1>.\cBrothel.cpp(2678) : error C2440: '=' : cannot convert from 'std::string' to 'sBrothel *'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Trying to build the trunk again since I think one of my girl folders is screwing up on the game though can't be totally sure. Might just put the save game on the bugs list.
-Xorg
-
Just curious if anyone has any idea what would case this error:
1>.\cBrothel.cpp(2678) : error C2440: '=' : cannot convert from 'std::string' to 'sBrothel *'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Trying to build the trunk again since I think one of my girl folders is screwing up on the game though can't be totally sure. Might just put the save game on the bugs list.
-Xorg
That's this line, then?
current = current->m_Next;
I don't see how that would be getting confused as a string then, no.
You're using Visual Studio, right? If you right-click the "m_Next" and choose "Go to Definition" or "Go to Declaration", it should take you to the line in cBrothel.h declaring it as
sBrothel* m_Next;
-
Yeah, using VS2009 and Go to Declaration brings it up in cBrother.h on line 291
typedef struct sBrothel
{
int m_id;
string m_Name;
Personally think VS is being picky once again.