summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2009-11-07 15:39:02 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2009-11-07 15:39:02 +0200
commita3d1db9bbd6c88b5435b5931279d845ed8a6c2c4 (patch)
treeb834cdc7b572114e7df022d297b87b0b4fb370fa
parent2ee704d7f92b25783a8a52f11df9b842ce0d391b (diff)
downloadfpGUI-a3d1db9bbd6c88b5435b5931279d845ed8a6c2c4.tar.xz
Finally fixed the "unable to load topic" error
I simply forgot to cast the pointer to PByte before I incremented it to the next slot.
-rw-r--r--src/HelpTopic.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HelpTopic.pas b/src/HelpTopic.pas
index 97ac68bd..e04d65b6 100644
--- a/src/HelpTopic.pas
+++ b/src/HelpTopic.pas
@@ -1324,7 +1324,7 @@ begin
raise EHelpFileException.Create('Failed to read complete slot data (text)');
_Slots.Add( Slot );
- inc( pSlotNumber, sizeof( UInt16 ) );
+ inc( pByte(pSlotNumber), sizeof( UInt16 ) );
end;
except
on E: EHelpFileException do