1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-19 16:47:14 +02:00

Minor changes I that should've been done in previous commits.

This commit is contained in:
Sandu Liviu Catalin
2016-04-02 12:31:45 +03:00
parent fab15840cb
commit 1c08f33604
2 changed files with 16 additions and 16 deletions

View File

@ -74,14 +74,14 @@ void OnSquirrelLoad()
// Make sure that we have a valid plugin API
if (!_SqMod)
{
return; // Unable to proceed.
return; // Unable to proceed!
}
// Obtain the Squirrel API and VM
_SqVM = _SqMod->GetSquirrelVM();
// Make sure that a valid virtual machine exists
if (!_SqVM)
{
return; // Unable to proceed.
return; // Unable to proceed!
}
// Set this as the default database
DefaultVM::Set(_SqVM);
@ -107,7 +107,7 @@ void OnSquirrelTerminate()
bool CheckAPIVer(CCStr ver)
{
// Obtain the numeric representation of the API version
long vernum = strtol(ver, nullptr, 10);
long vernum = std::strtol(ver, nullptr, 10);
// Check against version mismatch
if (vernum == SQMOD_API_VER)
{