Const correctness
svn-id: r40346
This commit is contained in:
parent
4da318bd11
commit
af4d23f762
4 changed files with 6 additions and 6 deletions
|
@ -70,14 +70,14 @@ uint32 Sword2Engine::findBufferSize() {
|
|||
* Save the game.
|
||||
*/
|
||||
|
||||
uint32 Sword2Engine::saveGame(uint16 slotNo, byte *desc) {
|
||||
uint32 Sword2Engine::saveGame(uint16 slotNo, const byte *desc) {
|
||||
char description[SAVE_DESCRIPTION_LEN];
|
||||
uint32 bufferSize = findBufferSize();
|
||||
byte *saveBuffer = (byte *)malloc(bufferSize);
|
||||
ScreenInfo *screenInfo = _screen->getScreenInfo();
|
||||
|
||||
memset(description, 0, sizeof(description));
|
||||
strncpy(description, (char *)desc, SAVE_DESCRIPTION_LEN - 1);
|
||||
strncpy(description, (const char *)desc, SAVE_DESCRIPTION_LEN - 1);
|
||||
|
||||
Common::MemoryWriteStream writeS(saveBuffer, bufferSize);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue