Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #883551

Lua players_iterate() stops at deleted players

Added by Alexandro Ignatiev about 2 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Normal
Category:
Scripting API
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The underlying Lua local function index_iterate(lookup) presumes consequent indices from 0 to the last while deleted players leave gaps. Likely, some C method should be written here, or just the iterator should check slots up to MAX_PLAYERS.

3.x-players_iterate.patch (3.28 KB) 3.x-players_iterate.patch Alexandro Ignatiev, 2021-07-24 12:38 AM
2.6-players_iterate.patch (3.24 KB) 2.6-players_iterate.patch Alexandro Ignatiev, 2021-07-24 12:42 AM

History

#1 Updated by Marko Lindqvist over 1 year ago

  • Sprint/Milestone changed from 2.6.3 to 2.6.4

#2 Updated by Marko Lindqvist over 1 year ago

  • Sprint/Milestone changed from 2.6.4 to 2.6.5

#3 Updated by Marko Lindqvist about 1 year ago

  • Subject changed from players_iterate() stops at deleted players to Lua players_iterate() stops at deleted players

#4 Updated by Marko Lindqvist about 1 year ago

  • Sprint/Milestone changed from 2.6.5 to 2.6.6

#6 Updated by Marko Lindqvist 9 months ago

  • Status changed from New to Resolved
  • Assignee set to Marko Lindqvist

Sorry for not looking at this earlier. I had missed that a patch had been added here.

Apparently 2.6, not 3.x, patch applies to S3_0. Let me know if that's not what one should do.

#7 Updated by Marko Lindqvist 8 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF