Skip to content

Commit

Permalink
修改玩家判断条件
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoyuexing committed Jul 14, 2018
1 parent 00e6bce commit a9afc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Basic/src/scene/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class Room extends eui.Component implements eui.UIComponent {
var user:GUser = new GUser;
var arr = JSON.parse(userPlayer[i].userProfile);
if(arr.userID !== GlobalData.myUser.userID) {
if (this.restartRoomInfo.length > 0) {
if (this.restartRoomInfo != undefined) {
for (var a in this.restartRoomInfo) {
if (arr.nickName == this.restartRoomInfo[a].nickName) {
user.pointValue = this.restartRoomInfo[a].pointValue;
Expand Down

0 comments on commit a9afc37

Please sign in to comment.