mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-29 21:47:12 +02:00
Migrated the host module to C++ exceptions as well.
Also enabled the latest C++ revision in the project. Replaced the Random library with the one provided by C++11. Implemented a simple AES256 encryption class. Various other fixes and improvements.
This commit is contained in:
@ -739,10 +739,9 @@ Object & FindPlayer(Object & by)
|
||||
Int32 id = _Func->GetPlayerIDFromName(&str[0]);
|
||||
if (VALID_ENTITYEX(id, SQMOD_PLAYER_POOL))
|
||||
_Core->GetPlayer(id).mObj;
|
||||
}
|
||||
break;
|
||||
} break;
|
||||
default:
|
||||
SqThrow("Unsupported search identifier");
|
||||
SqThrowF("Unsupported search identifier");
|
||||
}
|
||||
return NullObject();
|
||||
}
|
||||
|
Reference in New Issue
Block a user