Skip to content

Commit

Permalink
CREImporter: use the correct stuct type for malloc
Browse files Browse the repository at this point in the history
fixes static anylizer warning
  • Loading branch information
bradallred committed Jun 10, 2013
1 parent 5116fdb commit 5584b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/plugins/CREImporter/CREImporter.cpp
Expand Up @@ -1287,7 +1287,7 @@ void CREImporter::ReadInventory(Actor *act, unsigned int Inventory_Size)

// Reading spellbook
CREKnownSpell **known_spells=(CREKnownSpell **) calloc(KnownSpellsCount, sizeof(CREKnownSpell *) );
CREMemorizedSpell **memorized_spells=(CREMemorizedSpell **) calloc(MemorizedSpellsCount, sizeof(CREKnownSpell *) );
CREMemorizedSpell **memorized_spells=(CREMemorizedSpell **) calloc(MemorizedSpellsCount, sizeof(CREMemorizedSpell *) );

str->Seek( KnownSpellsOffset+CREOffset, GEM_STREAM_START );
for (i = 0; i < KnownSpellsCount; i++) {
Expand Down

0 comments on commit 5584b0c

Please sign in to comment.