diff options
Diffstat (limited to 'src/tools.cpp')
-rw-r--r-- | src/tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools.cpp b/src/tools.cpp index 89e5499..52c70bc 100644 --- a/src/tools.cpp +++ b/src/tools.cpp | |||
@@ -632,7 +632,7 @@ static lua_Integer get_mt_id( Universe* U, lua_State* L, int i) | |||
632 | 632 | ||
633 | if( id == 0) | 633 | if( id == 0) |
634 | { | 634 | { |
635 | id = U->last_mt_id.fetch_add(1, std::memory_order_relaxed); | 635 | id = U->next_mt_id.fetch_add(1, std::memory_order_relaxed); |
636 | 636 | ||
637 | /* Create two-way references: id_uint <-> table | 637 | /* Create two-way references: id_uint <-> table |
638 | */ | 638 | */ |