aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sislangrecord.cpp
diff options
context:
space:
mode:
authorDaniel Brahneborg <basic@chello.se>2002-03-02 23:28:39 +0000
committerDaniel Brahneborg <basic@chello.se>2002-03-02 23:28:39 +0000
commit9df8909948bb491b1b8c53ff8e1b5ce125304aac (patch)
tree239befaacb77374dfd9c61ed45d592259bb969b0 /lib/sislangrecord.cpp
parent6f49fd782b8935b8caf7cea7bcb6e10644851b13 (diff)
downloadplptools-9df8909948bb491b1b8c53ff8e1b5ce125304aac.tar.gz
plptools-9df8909948bb491b1b8c53ff8e1b5ce125304aac.tar.bz2
plptools-9df8909948bb491b1b8c53ff8e1b5ce125304aac.zip
Various proto changes.
Diffstat (limited to 'lib/sislangrecord.cpp')
-rw-r--r--lib/sislangrecord.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/sislangrecord.cpp b/lib/sislangrecord.cpp
index c79c45b..ede1d33 100644
--- a/lib/sislangrecord.cpp
+++ b/lib/sislangrecord.cpp
@@ -6,13 +6,12 @@
void
SISLangRecord::fillFrom(uchar* buf, int* base)
{
- int ix = *base;
- m_lang = read16(buf, &ix);
+ m_lang = read16(buf + *base);
if (logLevel >= 2)
printf("Got language %d (%s)\n", m_lang, langTable[m_lang].m_name);
if (logLevel >= 1)
printf("%d .. %d (%d bytes): Language record for %s\n",
- *base, ix, ix - *base, langTable[m_lang].m_name);
- *base = ix;
+ *base, *base + 2, 2, langTable[m_lang].m_name);
+ *base += 2;
}