Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbata committed Feb 9, 2024
1 parent d4103b8 commit c2a5fac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/w/IWadLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import static doom.SourceCode.W_Wad.W_LumpLength;
import static doom.SourceCode.W_Wad.W_ReadLump;
import static doom.SourceCode.W_Wad.W_Reload;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.function.IntFunction;
import java.util.logging.Level;
Expand Down
2 changes: 1 addition & 1 deletion src/w/WadLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ public <T extends CacheableDoomObject> T CacheLumpNum(int lump, int tag, Class<T
// In case of sequential reads of similar objects, use
// CacheLumpNumIntoArray instead.
thebuffer.rewind();
lumpcache[lump] = (CacheableDoomObject) what.getDeclaredConstructor().newInstance();
lumpcache[lump] = what.getDeclaredConstructor().newInstance();
lumpcache[lump].unpack(thebuffer);

// Track it for freeing
Expand Down

0 comments on commit c2a5fac

Please sign in to comment.