Make TangibleManager a GameInstance subsystem
This commit is contained in:
@@ -291,7 +291,7 @@ void UlxTangible::SetTangiblePlane(AActor* target, const FString& plane) {
|
||||
bool UlxTangible::IsCurrentPlayer(AActor* target) {
|
||||
UlxTangible *tan = GetActorTangibleQuiet(target);
|
||||
if (tan == nullptr) return false;
|
||||
ALuprexGameModeBase *gamemode = tan->Manager->GetGameMode();
|
||||
ALuprexGameModeBase *gamemode = ALuprexGameModeBase::FromContext(target);
|
||||
return (tan->TangibleId == gamemode->PlayerId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user