FIxed some warnings, cleanup

svn-id: r28982
This commit is contained in:
Max Horn 2007-09-20 09:28:52 +00:00
parent 3cbf4ad98f
commit 9593ff3e48
3 changed files with 16 additions and 15 deletions

View file

@ -83,7 +83,7 @@ uint16 get_sequence_index(uint16 offset, int supportIndex) {
}
}
for (int index = 0; index <= numSupportEntries; ++index) {
for (index = 0; index <= numSupportEntries; ++index) {
SupportStructure &rec = supportList[index];
if ((rec.numInstructions > 0) &&
@ -294,7 +294,6 @@ struct RoomRandomActionSet {
void read_action_sequence(byte *&data, uint16 &totalSize)
{
const uint16 hsOffset = 0x5d98;
const uint16 hsStartId = 0x3e8;
uint16 hotspotIndex;
HotspotHeaderEntry entryHeader;
CurrentActionInput action;
@ -335,7 +334,6 @@ void read_action_sequence(byte *&data, uint16 &totalSize)
randomActions[roomIndex].entries = new RoomRandomActionEntry[randomActions[roomIndex].numEntries];
// Loop through the entries
uint16 sequenceVal;
uint16 offset = randomActions[roomIndex].offset + 1;
for (uint8 entryCtr = 0; entryCtr < randomActions[roomIndex].numEntries; ++entryCtr)
{