Merge pull request #1434 from Azaezel/alpha41/badDB

typofix for bad %client.spawnDataBlock filtering
This commit is contained in:
Brian Roberts 2025-04-02 17:40:53 -05:00 committed by GitHub
commit 67a1805061
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ function GameConnectionListener::onSetSpawnObjectTypeComplete( %this, %client )
// a new one could result in an uncontrolled player object.
error("Attempting to create a player for a client that already has one!");
}
if ((!isClass(%client.spawnClass)) || (!isClass(%client.spawnDBType)) || (!isObject(%client.spawnDBType)))
if ((!isClass(%client.spawnClass)) || (!isClass(%client.spawnDBType)) || (!isObject(%client.spawnDataBlock)))
%this.onSetSpawnObjectTypeFailed(%client, false );
%client.setSpawnPoint();