浏览代码

haxe 4 fix

ncannasse 7 年之前
父节点
当前提交
7fc4dc912a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hxd/net/SteamHost.hx

+ 1 - 1
hxd/net/SteamHost.hx

@@ -229,7 +229,7 @@ class SteamService {
 	public static function start( ?host : SteamHost ) {
 		if( inst == null ) {
 			inst = new SteamService();
-			steam.Networking.startP2P(inst);
+			steam.Networking.startP2P({ onData : inst.onData, onConnectionRequest: inst.onConnectionRequest, onConnectionError: inst.onConnectionError });
 		}
 		if( host != null )
 			hosts.push(host);