![]() |
[BUGFIX] RE9: SpawnItem - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51) +----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44) +----- Thread: [BUGFIX] RE9: SpawnItem (/showthread.php?tid=2283) |
[BUGFIX] RE9: SpawnItem - shlink - 22-10-2008 Miniscule, but annoying. Code: Sub SpawnItem(ByVal ItemNum As Long, ByVal ItemVal As Long, ByVal MapNum As Long, ByVal x As Long, ByVal y As Long) In the Sub above, replace: Code: ItemNum < 0 Code: ItemNum < 1 That's it. Now you truely shouldn't get the dreaded runtime error 9. If there is a more appropriate fix, post it or thou shalt be smited! ...or not... :evil: And if this fix is wrong in some way, by all means, let me know and consider this a bug report rather than a fix. But from testing, it fixes the error 100% with no problems to the rest of the game that I've seen. Re: [BUGFIX] RE9: SpawnItem - Rian - 09-01-2009 Necroposting bot has been banned. |