mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-28 08:27:22 +00:00
Update BaseFootRaceManager.cpp (#1657)
This commit is contained in:
parent
c37a0c86c1
commit
218a3f2d0d
@ -12,7 +12,10 @@ void BaseFootRaceManager::OnFireEventServerSide(Entity* self, Entity* sender, st
|
||||
if (splitArguments.size() > 1) {
|
||||
|
||||
const auto eventName = splitArguments[0];
|
||||
const auto player = Game::entityManager->GetEntity(std::stoull(splitArguments[1]));
|
||||
auto playerId = GeneralUtils::TryParse<LWOOBJID>(splitArguments[1]);
|
||||
if (!playerId) return;
|
||||
|
||||
const auto player = Game::entityManager->GetEntity(playerId.value());
|
||||
|
||||
if (player != nullptr) {
|
||||
if (eventName == "updatePlayer") {
|
||||
|
Loading…
Reference in New Issue
Block a user