diff options
| author | Max Horn | 2009-10-02 14:42:24 +0000 |
|---|---|---|
| committer | Max Horn | 2009-10-02 14:42:24 +0000 |
| commit | f54e82e4880767f6e71c83840bff1ae8e0feda3d (patch) | |
| tree | 30f39e823d322bae805faac95fd2e65023d29a0c /tools/create_lure/create_lure_dat.cpp | |
| parent | 01176782ead27701b4700f458fbad3f8a84514af (diff) | |
| download | scummvm-rg350-f54e82e4880767f6e71c83840bff1ae8e0feda3d.tar.gz scummvm-rg350-f54e82e4880767f6e71c83840bff1ae8e0feda3d.tar.bz2 scummvm-rg350-f54e82e4880767f6e71c83840bff1ae8e0feda3d.zip | |
Fix more cppcheck warnings/errors; some code formatting; and fixes to our tools
svn-id: r44539
Diffstat (limited to 'tools/create_lure/create_lure_dat.cpp')
| -rw-r--r-- | tools/create_lure/create_lure_dat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/create_lure/create_lure_dat.cpp b/tools/create_lure/create_lure_dat.cpp index 9377506c9b..f1d4e39011 100644 --- a/tools/create_lure/create_lure_dat.cpp +++ b/tools/create_lure/create_lure_dat.cpp @@ -778,7 +778,7 @@ void read_anim_data(byte *&data, uint16 &totalSize) { uint16 startOffset; int ctr, dirCtr; int movementSize = 0; - bool *includeAnim = (bool *) malloc(animIndex); + bool *includeAnim = (bool *)malloc(animIndex); // Loop to figure out the total number of movement records there are for (ctr = 0; ctr < animIndex; ++ctr) { @@ -886,7 +886,7 @@ void read_anim_data(byte *&data, uint16 &totalSize) { } rec->animRecordId = TO_LE_16(0xffff); - delete includeAnim; + free(includeAnim); } void read_script_data(byte *&data, uint16 &totalSize) { |
