Skip to content

Commit c839e2b

Browse files
fix type of originalBytes
1 parent 3af7790 commit c839e2b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/core/pkm/interfaces.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export type PKMInterface = AllPKMFields & {
2525
// If met in a plugin save, this will be the save's plugin_identifier. otherwise this is empty
2626
pluginOrigin?: PluginIdentifier // why are there two of these??
2727
isFakemon?: boolean
28-
originalBytes?: Uint8Array
2928
selectColor?: string
3029
// User-defined display color for this Pokemon in boxes (CSS color string)
3130
displayColor?: string

src/core/save/cfru/PK3CFRU.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export abstract class PK3CFRU implements PluginPKMInterface {
112112
trainerName: string
113113
trainerGender: boolean
114114
isFakemon: boolean = false
115-
originalBytes?: Uint8Array
115+
originalBytes?: ArrayBuffer
116116

117117
pluginForm?: number
118118

@@ -123,7 +123,7 @@ export abstract class PK3CFRU implements PluginPKMInterface {
123123
let buffer = arg
124124
const dataView = new DataView(buffer)
125125

126-
this.originalBytes = new Uint8Array(arg)
126+
this.originalBytes = arg
127127

128128
// https://github.com/Skeli789/Complete-Fire-Red-Upgrade/blob/master/include/new/pokemon_storage_system.h
129129
// https://github.com/Skeli789/Complete-Fire-Red-Upgrade/blob/master/include/pokemon.h

0 commit comments

Comments
 (0)