{"action":"opened","issue":{"url":"https://api.github.com/repos/AsYetUntitled/Framework/issues/262","repository_url":"https://api.github.com/repos/AsYetUntitled/Framework","labels_url":"https://api.github.com/repos/AsYetUntitled/Framework/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/AsYetUntitled/Framework/issues/262/comments","events_url":"https://api.github.com/repos/AsYetUntitled/Framework/issues/262/events","html_url":"https://github.com/AsYetUntitled/Framework/issues/262","id":203992316,"number":262,"title":"Error in expression - fn_weaponShopSelection","user":{"login":"Jawshy","id":10876578,"avatar_url":"https://avatars.githubusercontent.com/u/10876578?v=3","gravatar_id":"","url":"https://api.github.com/users/Jawshy","html_url":"https://github.com/Jawshy","followers_url":"https://api.github.com/users/Jawshy/followers","following_url":"https://api.github.com/users/Jawshy/following{/other_user}","gists_url":"https://api.github.com/users/Jawshy/gists{/gist_id}","starred_url":"https://api.github.com/users/Jawshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jawshy/subscriptions","organizations_url":"https://api.github.com/users/Jawshy/orgs","repos_url":"https://api.github.com/users/Jawshy/repos","events_url":"https://api.github.com/users/Jawshy/events{/privacy}","received_events_url":"https://api.github.com/users/Jawshy/received_events","type":"User","site_admin":false},"labels":[{"id":447620790,"url":"https://api.github.com/repos/AsYetUntitled/Framework/labels/minor-bug","name":"minor-bug","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-30T12:02:03Z","updated_at":"2017-01-30T12:02:03Z","closed_at":null,"body":"### Expected behaviour\r\nMagazines are sold at their respective price determined in [Config_Weapons.hpp](https://github.com/AsYetUntitled/Framework/blob/master/Altis_Life.Altis/config/Config_Weapons.hpp). \r\n\r\n### Actual behaviour\r\nMagazines are sold for 0 dollars. \r\n\r\n### Steps to reproduce the behaviour \r\n1. Spawn in as police or civilian. \r\n2. Go to a weapon shop. \r\n3. Purchase a magazine. \r\n4. Sell the magazine. \r\n5. Note the [error in expression for fn_weaponShopSelection.sqf](https://github.com/AsYetUntitled/Framework/blob/98d19e4208ec199fbf27ea9f5e5132383eab7327/Altis_Life.Altis/core/shops/fn_weaponShopSelection.sqf#L22-L23) and that the magazine was sold for 0 dollars. \r\n\r\n### [RPT](https://community.bistudio.com/wiki/Crash_Files#Arma_3) and/or extDB3 logs (if applicable)\r\n```\r\nError in expression <ll TON_fnc_index;\r\n_price = ((_itemArray select _item) select 3);\r\n_priceTag ctrlS>\r\n  Error position: <select _item) select 3);\r\n_priceTag ctrlS>\r\n  Error Zero divisor\r\nFile mpmissions\\__CUR_MP.Altis\\core\\shops\\fn_weaponShopSelection.sqf, line 22\r\n```\r\n\r\n----\r\n\r\nMission version: 5.0.0 as of https://github.com/AsYetUntitled/Framework/commit/88e9599e9379fc687077773aa0dd0192f8a1c0ba. \r\n\r\nLauncher version: 1.5.139565\r\n\r\nGame version: 1.66.140166\r\n\r\nBranch: [profiling](https://community.bistudio.com/wiki/Arma_3_Steam_Branches)\r\n"}}
{"actor":{"display_login":"Jawshy"}}