summaryrefslogtreecommitdiffhomepage
path: root/contrib/very-important-source-code
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-12-09 17:41:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-12-09 17:41:39 +0100
commit832d631060a889deb2ff4232209025a14f2f07a8 (patch)
tree8a8b0d1fa89ba39bac8c9ee685a5c229ac184a1a /contrib/very-important-source-code
parent55a4dea311eabe5a4a7d1e97352d854898512ef2 (diff)
contrib/npclient: fix race
Diffstat (limited to 'contrib/very-important-source-code')
-rw-r--r--contrib/very-important-source-code/npclient.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/very-important-source-code/npclient.c b/contrib/very-important-source-code/npclient.c
index d635069c..b991dc35 100644
--- a/contrib/very-important-source-code/npclient.c
+++ b/contrib/very-important-source-code/npclient.c
@@ -295,7 +295,8 @@ NP_EXPORT(int) NP_GetData(tir_data_t * data)
ty = pMemData->data.Y;
tz = pMemData->data.Z;
- if (!bEncryptionChecked) {
+ if (pMemData->GameId == pMemData->GameId2 && !bEncryptionChecked)
+ {
dbg_report("NP_GetData: game = %d\n", pMemData->GameId);
memcpy(table, pMemData->table, 8);
for (i = 0; i < 8; i++)