mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-10-18 11:18:30 +00:00
Fix lua packet's index always being 0 (#405)
This commit is contained in:
parent
299c5f0886
commit
2fc3d7fee9
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ void network_send_lua_custom(bool broadcast) {
|
|||
// get local index
|
||||
s32 toLocalIndex = 0;
|
||||
if (!broadcast) {
|
||||
s32 toLocalIndex = smlua_to_integer(L, paramIndex++);
|
||||
toLocalIndex = smlua_to_integer(L, paramIndex++);
|
||||
if (toLocalIndex <= 0 || toLocalIndex >= MAX_PLAYERS) {
|
||||
LOG_LUA_LINE("Tried to send packet to invalid local index: %d", toLocalIndex)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue