CGE: Preserve const in cast.

This commit is contained in:
Alyssa Milburn 2011-08-17 10:50:26 +02:00
parent 9a94a239b8
commit a9f002897e
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ namespace CGE {
// sample info
struct SmpInfo {
uint8 *_saddr; // address
const uint8 *_saddr; // address
uint16 _slen; // length
uint16 _span; // left/right pan (0-15)
int _sflag; // flag

View File

@ -61,7 +61,7 @@ void Sound::open() {
void Sound::play(DataCk *wav, int pan, int cnt) {
if (wav) {
stop();
_smpinf._saddr = (uint8 *) &*(wav->addr());
_smpinf._saddr = &*(wav->addr());
_smpinf._slen = (uint16)wav->size();
_smpinf._span = pan;
_smpinf._sflag = cnt;