mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-21 14:53:30 -04:00
Fix sound userdata pointers being truncated
This commit is contained in:
@@ -22,7 +22,7 @@ public:
|
||||
bool isActive() const;
|
||||
|
||||
Z2SoundHandlePool* getHandleSoundID(JAISoundID soundID);
|
||||
Z2SoundHandlePool* getHandleUserData(u32 userData);
|
||||
Z2SoundHandlePool* getHandleUserData(uintptr_t userData);
|
||||
|
||||
void stopAllSounds(u32 fadeTime);
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ Z2SoundHandlePool* Z2SoundHandles::getHandleSoundID(JAISoundID soundID) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Z2SoundHandlePool* Z2SoundHandles::getHandleUserData(u32 userData) {
|
||||
Z2SoundHandlePool* Z2SoundHandles::getHandleUserData(uintptr_t userData) {
|
||||
JSULink<Z2SoundHandlePool>* i;
|
||||
for (i = getFirst(); i != NULL; i = i->getNext()) {
|
||||
Z2SoundHandlePool* handle = i->getObject();
|
||||
|
||||
@@ -500,7 +500,7 @@ void Z2SoundObjAnime::startSoundInner(const JGeometry::TVec3<f32>& pos, f32 para
|
||||
JUT_ASSERT(747, curSoundIndex_ < animation_->getNumSounds());
|
||||
|
||||
const JAUSoundAnimationSound* animationSound = animation_->getSound(curSoundIndex_);
|
||||
u32 user_data = (uintptr_t)animationSound;
|
||||
uintptr_t user_data = (uintptr_t)animationSound;
|
||||
if (reverse_) {
|
||||
curSoundIndex_--;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user