You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I am new to C++ and tried to get the game working.
But I stuck in RPG_Main.cpp Line 55:
cCommand::g_engine = this;
--> error:
RPG_Main.cpp(55,24): error C2440: '=': cannot convert from 'OneLoneCoder_RPG *' to 'RPG_Engine *'
RPG_Main.cpp(55,24): message : Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast
Did I miss anything?
The text was updated successfully, but these errors were encountered:
the game compiles once I remove this line but then you can only run on the first map(, kill the skeletons but once you enter the house "nothing" happens)
I assume it is an inheritance thing but I can't find it.
weirdly enough. When I exchange this line with cCommand::g_engine = (RPG_Engine *)this;
it compiles too but this time the door has a circle and there is an extra life on the ground but still the room doesn't load
Hey,
I am new to C++ and tried to get the game working.
But I stuck in RPG_Main.cpp Line 55:
cCommand::g_engine = this;
--> error:
RPG_Main.cpp(55,24): error C2440: '=': cannot convert from 'OneLoneCoder_RPG *' to 'RPG_Engine *'
RPG_Main.cpp(55,24): message : Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or parenthesized function-style cast
Did I miss anything?
The text was updated successfully, but these errors were encountered: