Skip to content

Commit

Permalink
Lua AI: Add string version of status to AI action result table
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel authored and mattsc committed Mar 22, 2016
1 parent a9a22c9 commit e2ea9cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ai/lua/core.cpp
Expand Up @@ -110,6 +110,8 @@ static int transform_ai_action(lua_State *L, ai::action_result_ptr action_result
lua_setfield(L, -2, "gamestate_changed");
lua_pushinteger(L,action_result->get_status());
lua_setfield(L, -2, "status");
lua_pushstring(L, actions::get_error_name(action_result->get_status()).c_str());
lua_setfield(L, -2, "result");
return 1;
}

Expand Down

0 comments on commit e2ea9cd

Please sign in to comment.