diff options
Diffstat (limited to 'src/CBot/CBotDll.h')
-rw-r--r-- | src/CBot/CBotDll.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/CBot/CBotDll.h b/src/CBot/CBotDll.h index c30125c..7af63ca 100644 --- a/src/CBot/CBotDll.h +++ b/src/CBot/CBotDll.h @@ -77,9 +77,10 @@ enum CBotType //n = not implemented yet // for SetUserPtr when deleting an object -#define OBJECTDELETED ((void*)-1) +// \TODO define own types to distinct between different states of objects +#define OBJECTDELETED (reinterpret_cast<void*>(-1)) // value set before initialization -#define OBJECTCREATED ((void*)-2) +#define OBJECTCREATED (reinterpret_cast<void*>(-2)) /** \brief CBotTypResult class to define the complete type of a result*/ @@ -314,7 +315,7 @@ private: int m_lg; /** \brief Keeps the string corresponding to keyword ID */ - static const std::map<EID, char *> s_keywordString; + static const std::map<EID,const char *> s_keywordString; /** * \brief MapIdToString maps given ID to its string equivalent |