aboutsummaryrefslogtreecommitdiff
path: root/src/itemdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemdef.cpp')
-rw-r--r--src/itemdef.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/itemdef.cpp b/src/itemdef.cpp
index 08ff887b2..2971d4e88 100644
--- a/src/itemdef.cpp
+++ b/src/itemdef.cpp
@@ -241,7 +241,7 @@ public:
{
#ifndef SERVER
- m_main_thread = get_current_thread_id();
+ m_main_thread = thr_get_current_thread_id();
#endif
clear();
}
@@ -317,7 +317,7 @@ public:
<<name<<"\""<<std::endl;
// This is not thread-safe
- sanity_check(get_current_thread_id() == m_main_thread);
+ sanity_check(thr_is_current_thread(m_main_thread));
// Skip if already in cache
ClientCached *cc = NULL;
@@ -448,7 +448,7 @@ public:
if(cc)
return cc;
- if(get_current_thread_id() == m_main_thread)
+ if(thr_is_current_thread(m_main_thread))
{
return createClientCachedDirect(name, gamedef);
}