Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read Access Violation
#14
No it can't as they're two unrelated properties: Layer.palette is an optional property that can be NULL -and by default is-, whereas Tileset.palette is mandatory and belongs to the Tileset, not the Layer. Each one must be managed by its own accessor.
Tileset lacks accesor to set it in purpose, it can only be set during creation and then remains constant, it can't be changed. Your proposed setter function would work in the short term, but it would cause the leaking/orphaning problems of broken references I talked about in last post. That's by it doesn't exist.
Reply


Messages In This Thread
Read Access Violation - by Midnight Syntax - 10-24-2022, 02:42 AM
RE: Read Access Violation - by megamarc - 10-25-2022, 05:18 AM
RE: Read Access Violation - by Midnight Syntax - 10-25-2022, 07:59 AM
RE: Read Access Violation - by Daniel H. - 10-25-2022, 04:49 PM
RE: Read Access Violation - by megamarc - 10-26-2022, 12:35 AM
RE: Read Access Violation - by Midnight Syntax - 10-26-2022, 09:05 AM
RE: Read Access Violation - by Daniel H. - 10-27-2022, 01:02 AM
RE: Read Access Violation - by megamarc - 10-27-2022, 03:15 AM
RE: Read Access Violation - by System64 - 10-27-2022, 03:47 AM
RE: Read Access Violation - by megamarc - 10-27-2022, 09:24 AM
RE: Read Access Violation - by System64 - 10-27-2022, 11:45 PM
RE: Read Access Violation - by megamarc - 10-29-2022, 07:44 PM
RE: Read Access Violation - by System64 - 10-29-2022, 10:30 PM
RE: Read Access Violation - by megamarc - 10-30-2022, 02:34 AM
RE: Read Access Violation - by System64 - 10-30-2022, 02:51 AM
RE: Read Access Violation - by megamarc - 10-30-2022, 04:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)