Browse Source

fix attach bug

Maxim Sokhatsky 11 years ago
parent
commit
5ed87e2e10
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/server/src/game_session.erl

+ 1 - 1
apps/server/src/game_session.erl

@@ -68,7 +68,7 @@ handle_call(Request, From, State) ->
 
 
 handle_cast({bot_session_attach, UserInfo}, State = #state{user = undefined}) ->
 handle_cast({bot_session_attach, UserInfo}, State = #state{user = undefined}) ->
 %    ?INFO("bot session attach", []),
 %    ?INFO("bot session attach", []),
-    {noreply, state#state{user = UserInfo}};
+    {noreply, State#state{user = UserInfo}};
 
 
 handle_cast(Msg, State) ->
 handle_cast(Msg, State) ->
     ?INFO("session: unrecognized cast: ~p", [Msg]),
     ?INFO("session: unrecognized cast: ~p", [Msg]),