mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2025-05-31 14:11:42 +05:30
Fixed segmentation fault by clarifying pointer of pointer
This commit is contained in:
@@ -86,7 +86,7 @@ typedef struct {
|
||||
void (* const printcoordinate)(struct Coordinate*, unsigned int);
|
||||
|
||||
// input: pointer to struct, file data
|
||||
bool (* const getheader) (struct Header*, const char*);
|
||||
bool (* const getheader) (struct Header**, const char*);
|
||||
|
||||
// input: pointer of pointer to struct, order, file data
|
||||
// ** = 'pass by reference' of a pointer to struct
|
||||
|
@@ -46,7 +46,7 @@ typedef struct {
|
||||
void (* const printbatchdesc)(struct TextureBatchDescriptor*);
|
||||
|
||||
// input: pointer to struct, file data
|
||||
bool (* const getheader) (struct TexturePack*, const char*);
|
||||
bool (* const getheader) (struct TexturePack**, const char*);
|
||||
|
||||
// input: pointer of pointer to struct, order, file data, file size
|
||||
// ** = 'pass by reference' of a pointer to struct
|
||||
|
Reference in New Issue
Block a user