fix off-by-one due to Lua being 1-indexed
This commit is contained in:
parent
a7ea6d5b40
commit
4eb0016d75
1 changed files with 1 additions and 1 deletions
|
@ -1528,7 +1528,7 @@ static int CclAiProcessorStep(lua_State *l)
|
|||
CTCPSocket *s = AiProcessorSendState(l, 'S');
|
||||
int action = 0;
|
||||
s->Recv(&action, 1);
|
||||
lua_pushnumber(l, action);
|
||||
lua_pushnumber(l, action + 1); // +1 since lua tables are 1-indexed
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue