Browse Source

Merge pull request #1434 from Azaezel/alpha41/badDB

typofix for bad %client.spawnDataBlock filtering
Brian Roberts 6 tháng trước cách đây
mục cha
commit
67a1805061

+ 1 - 1
Templates/BaseGame/game/core/clientServer/scripts/server/connectionToClient.tscript

@@ -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();