* Fixed plug-in version getting checked against itself and a wrong operator being used for the check (bugreport:3952, since r9631).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14467 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ai4rei 2010-11-19 22:06:33 +00:00
parent fb7617d575
commit eacbf99c39
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ Date Added
- Fixed usage of 'long long' in strtoull preventing VC6 projects from compiling (bugreport:4059, follow up to r14245). - Fixed usage of 'long long' in strtoull preventing VC6 projects from compiling (bugreport:4059, follow up to r14245).
- Made strtoull default to base 10 and actually process base 8, to match the normal behavior of this function (bugreport:4059, follow up to r14245). - Made strtoull default to base 10 and actually process base 8, to match the normal behavior of this function (bugreport:4059, follow up to r14245).
- Fixed functions in db.c not being returned as pointer, causing warnings on VC6. - Fixed functions in db.c not being returned as pointer, causing warnings on VC6.
* Fixed plug-in version getting checked against itself and a wrong operator being used for the check (bugreport:3952, since r9631). [Ai4rei]
2010/11/16 2010/11/16
* Added a missing argument to a warning containing a format specifier. [Paradox924X] * Added a missing argument to a warning containing a format specifier. [Paradox924X]
2010/11/15 2010/11/15

View File

@ -160,8 +160,8 @@ static int plugin_iscompatible(char* version)
if( version == NULL ) if( version == NULL )
return 0; return 0;
sscanf(version, "%d.%d", &req_major, &req_minor); sscanf(version, "%d.%d", &req_major, &req_minor);
sscanf(version, "%d.%d", &major, &minor); sscanf(PLUGIN_VERSION, "%d.%d", &major, &minor);
return ( req_major == major || req_minor <= minor ); return ( req_major == major && req_minor <= minor );
} }
Plugin* plugin_open(const char* filename) Plugin* plugin_open(const char* filename)