mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-08 19:00:57 +00:00
AGS: Fix Cast Qualification GCC Compiler Warnings
This commit is contained in:
parent
b04679f98a
commit
291fbe51a1
@ -38,7 +38,7 @@ size_t CCAudioChannel::CalcSerializeSize() {
|
||||
}
|
||||
|
||||
void CCAudioChannel::Serialize(const char *address, Stream *out) {
|
||||
ScriptAudioChannel *ach = (ScriptAudioChannel *)address;
|
||||
const ScriptAudioChannel *ach = (const ScriptAudioChannel *)address;
|
||||
out->WriteInt32(ach->id);
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ size_t CCAudioClip::CalcSerializeSize() {
|
||||
}
|
||||
|
||||
void CCAudioClip::Serialize(const char *address, Stream *out) {
|
||||
ScriptAudioClip *ach = (ScriptAudioClip *)address;
|
||||
const ScriptAudioClip *ach = (const ScriptAudioClip *)address;
|
||||
out->WriteInt32(ach->id);
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ size_t CCCharacter::CalcSerializeSize() {
|
||||
// serialize the object into BUFFER (which is BUFSIZE bytes)
|
||||
// return number of bytes used
|
||||
void CCCharacter::Serialize(const char *address, Stream *out) {
|
||||
CharacterInfo *chaa = (CharacterInfo *)address;
|
||||
const CharacterInfo *chaa = (const CharacterInfo *)address;
|
||||
out->WriteInt32(chaa->index_id);
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ size_t CCDialog::CalcSerializeSize() {
|
||||
// serialize the object into BUFFER (which is BUFSIZE bytes)
|
||||
// return number of bytes used
|
||||
void CCDialog::Serialize(const char *address, Stream *out) {
|
||||
ScriptDialog *shh = (ScriptDialog *)address;
|
||||
const ScriptDialog *shh = (const ScriptDialog *)address;
|
||||
out->WriteInt32(shh->id);
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ size_t CCGUI::CalcSerializeSize() {
|
||||
// serialize the object into BUFFER (which is BUFSIZE bytes)
|
||||
// return number of bytes used
|
||||
void CCGUI::Serialize(const char *address, Stream *out) {
|
||||
ScriptGUI *shh = (ScriptGUI *)address;
|
||||
const ScriptGUI *shh = (const ScriptGUI *)address;
|
||||
out->WriteInt32(shh->id);
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ size_t CCGUIObject::CalcSerializeSize() {
|
||||
// serialize the object into BUFFER (which is BUFSIZE bytes)
|
||||
// return number of bytes used
|
||||
void CCGUIObject::Serialize(const char *address, Stream *out) {
|
||||
GUIObject *guio = (GUIObject *)address;
|
||||
const GUIObject *guio = (const GUIObject *)address;
|
||||
out->WriteInt32(guio->ParentId);
|
||||
out->WriteInt32(guio->Id);
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ size_t CCHotspot::CalcSerializeSize() {
|
||||
// serialize the object into BUFFER (which is BUFSIZE bytes)
|
||||
// return number of bytes used
|
||||
void CCHotspot::Serialize(const char *address, Stream *out) {
|
||||
ScriptHotspot *shh = (ScriptHotspot *)address;
|
||||
const ScriptHotspot *shh = (const ScriptHotspot *)address;
|
||||
out->WriteInt32(shh->id);
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ size_t CCInventory::CalcSerializeSize() {
|
||||
// serialize the object into BUFFER (which is BUFSIZE bytes)
|
||||
// return number of bytes used
|
||||
void CCInventory::Serialize(const char *address, Stream *out) {
|
||||
ScriptInvItem *shh = (ScriptInvItem *)address;
|
||||
const ScriptInvItem *shh = (const ScriptInvItem *)address;
|
||||
out->WriteInt32(shh->id);
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ size_t CCObject::CalcSerializeSize() {
|
||||
// serialize the object into BUFFER (which is BUFSIZE bytes)
|
||||
// return number of bytes used
|
||||
void CCObject::Serialize(const char *address, Stream *out) {
|
||||
ScriptObject *shh = (ScriptObject *)address;
|
||||
const ScriptObject *shh = (const ScriptObject *)address;
|
||||
out->WriteInt32(shh->id);
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ size_t CCRegion::CalcSerializeSize() {
|
||||
// serialize the object into BUFFER (which is BUFSIZE bytes)
|
||||
// return number of bytes used
|
||||
void CCRegion::Serialize(const char *address, Stream *out) {
|
||||
ScriptRegion *shh = (ScriptRegion *)address;
|
||||
const ScriptRegion *shh = (const ScriptRegion *)address;
|
||||
out->WriteInt32(shh->id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user