Fixed Linux compile warnings

This commit is contained in:
Kernell 2015-12-19 19:16:02 +03:00
parent 5a80e2a015
commit 1970206eeb
3 changed files with 2 additions and 6 deletions

View File

@ -1,7 +1,7 @@
/*********************************************************
*
* Multi Theft Auto: San Andreas - Deathmatch
/*********************************************************
**********************************************************
*
* Copyright © 2013, Innovation Roleplay Engine.
*

View File

@ -40,8 +40,6 @@ public:
CMonoGC* GetGC ( void ) { return this->m_pGC; }
#pragma region Static methods
static string GetBinariesDirectory( void )
{
return "mods/deathmatch/resources/[ire]";
@ -53,8 +51,6 @@ public:
static void MonoPrintCallbackHandler( const char *string, mono_bool is_stdout );
static void MonoPrintErrorCallbackHandler( const char *string, mono_bool is_stdout );
#pragma endregion
};
#endif

View File

@ -41,7 +41,7 @@ public:
return pColor;
}
template <class T> static T GetPropertyValue( MonoObject* pMonoObject, char* szPropertyName )
template <class T> static T GetPropertyValue( MonoObject* pMonoObject, const char* szPropertyName )
{
return *( reinterpret_cast<T*>( mono_object_unbox( GetPropertyValue( pMonoObject, szPropertyName ) ) ) );
}