Skip to content

Fix access to embedded object name#1022

Merged
AaronVanGeffen merged 1 commit intoOpenLoco:masterfrom
janisozaur:fix-obj-name
Jul 1, 2021
Merged

Fix access to embedded object name#1022
AaronVanGeffen merged 1 commit intoOpenLoco:masterfrom
janisozaur:fix-obj-name

Conversation

@janisozaur
Copy link
Copy Markdown
Contributor

@janisozaur janisozaur commented Jun 28, 2021

Object name is not truly a string, but an array of 8 chars that are not expected to be null-terminated

char name[8] = { cFF, cFF, cFF, cFF, cFF, cFF, cFF, cFF };

@AaronVanGeffen AaronVanGeffen added the changelog Requires a changelog entry label Jun 28, 2021
janisozaur added a commit to janisozaur/OpenLoco that referenced this pull request Jun 29, 2021
janisozaur added a commit to janisozaur/OpenLoco that referenced this pull request Jun 29, 2021
@duncanspumpkin
Copy link
Copy Markdown
Contributor

Do we even need a changelog entry this code was only introduced this month.

@AaronVanGeffen AaronVanGeffen removed the changelog Requires a changelog entry label Jul 1, 2021
@AaronVanGeffen
Copy link
Copy Markdown
Member

Ah, in that case, we should drop the changelog entry, yes. Sorry.

@AaronVanGeffen AaronVanGeffen merged commit d10b16e into OpenLoco:master Jul 1, 2021
@AaronVanGeffen AaronVanGeffen added this to the v21.05+ milestone Jul 4, 2021
tomasharkema added a commit to tomasharkema/OpenLoco that referenced this pull request Jul 13, 2021
…ature/mac-docker

* 'master' of https://github.com/OpenLoco/OpenLoco: (536 commits)
  Mention code style in readme (OpenLoco#1047)
  Remove redundant rotate function (OpenLoco#1046)
  Link up implemented function (OpenLoco#1043)
  Fix use of constants for coord limits (OpenLoco#1037)
  validCoords: remove template parameter and name type (OpenLoco#1033)
  Add coordinate validation to tile loops with offsets (OpenLoco#1031)
  Implement ChangeCompanyColour game command (OpenLoco#1029)
  Implement colour picker dropdowns (OpenLoco#1028)
  Implement StationManager::generateNewStationName (OpenLoco#1020)
  Station rename command (OpenLoco#984)
  Fix access to embedded object name (OpenLoco#1022)
  Reduce inclusion of StringIds.h in header files (OpenLoco#985)
  Implement the station name background paint (OpenLoco#1023)
  Force alignment on TileManager::createAnimation hook
  Merge duplicated flags and use accessors (OpenLoco#1025)
  Remove use of global stringformatbuffer where not required (OpenLoco#1024)
  Refactor calls to tryCreateInitialMovementSound (OpenLoco#1018)
  Turn widget draw functions into Widget struct member functions (OpenLoco#1012)
  Allow filtering the vehicle list by station or cargo (OpenLoco#997)
  Restore game command table alignment
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants